3 years ago
This review was submitted for a previous version of the package. Version: 1.0
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.
Hi Ramon,Nice spot! We'll give it a look before next release.Tomek
Most awaited feature from developers! But what about Mocks? How to mock existing MonoBehavior in unit test?
Maybe you will find this helpful //blogs.unity3d.com/2014/06/03/unit-testing-part-2-unit-testing-monobehaviours/
1 month 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.