



4 months ago
"Assets/UnityTestTools/Examples/UnitTestExamples/Editor/SampleTests.cs(74,10): error CS0246: The type or namespace name `ExpectedException' could not be found. Are you missing an assembly reference?"
This one appeared in the with the NUnit 3 (Unity 5.6) update . Please, fix it.
4 years ago
This review was submitted for a previous version of the package. Version: 1.0
Wow
Ok, this plugin made me very happy.
Answering the guy above, how I use the mocks here (with NSubstitute)
Suppose the MonoBehaviour class name is Player:
1. Create a IPlayer interface.
2. Make the Player implements it.
3. In the test, write IPlayer p = Substitute.For<IPlayer>()
4. Use the 'p' mock object to make the operations.
5. These operations you can check at http://nsubstitute.github.io/
I've found a (possible) bug though. When I make a TestFixture class extends another TestFixture class, the Test Runner window goes buggy, showing the same test more than once.