More Unit Tests

This commit is contained in:
2019-09-09 22:16:51 -06:00
parent 52a566eaf4
commit d99bce4d14
12 changed files with 296 additions and 6 deletions

View File

@@ -0,0 +1,26 @@
using Moq;
using NUnit.Framework;
using Tello_Drone;
namespace Tests
{
public class DroneFactoryTests
{
private Mock<IDroneCommands> _mockDroneCommands;
[SetUp]
public void Setup()
{
_mockDroneCommands = new Mock<IDroneCommands>();
}
[Test]
public void CreateDroneTests()
{
var droneFactory = new DroneFactory(_mockDroneCommands.Object);
var drone = droneFactory.CreateDrone;
Assert.AreEqual(typeof(Drone), drone.GetType());
}
}
}