Have one last unit test

This commit is contained in:
2019-09-11 22:35:35 -06:00
parent 6e42363daf
commit cede87461f
16 changed files with 269 additions and 47 deletions

View File

@@ -0,0 +1,24 @@
using System.Threading;
using Moq;
using NUnit.Framework;
using Tello_Drone;
namespace TelloDroneUnitTests
{
public class UdpClientWrapperFactoryTests
{
private Mock<IConsoleLogger> _mockConsoleLogger;
[SetUp]
public void SetUp()
{
_mockConsoleLogger = new Mock<IConsoleLogger>();
}
[Test]
public void CreateTest()
{
Assert.IsInstanceOf(typeof(UdpClientWrapper), new UdpClientWrapperFactory(_mockConsoleLogger.Object).Create());
}
}
}