soundvision/UnityProject/Assets/Scripts/UnitTest/SimpleTest.cs
2019-07-06 14:50:40 +02:00

32 lines
558 B
C#

using NUnit.Framework;
using NSubstitute;
namespace UnitTests
{
public class SimpleTest
{
[Test]
public void FirstTest()
{
Assert.AreEqual(10, 10);
}
public interface ISomeInterface
{
void doSomething();
}
[Test]
public void FirstMock()
{
var mock = Substitute.For<ISomeInterface>();
mock.doSomething();
mock.Received(1).doSomething();
}
}
}