Files
tello_drone/TelloDroneUnitTests/ConsoleLoggerTests.cs
2019-09-11 22:35:35 -06:00

25 lines
555 B
C#

using NUnit.Framework;
using Tello_Drone;
namespace TelloDroneUnitTests
{
public class ConsoleLoggerTests
{
[SetUp]
public void Setup()
{
}
[Test]
public void LogTest()
{
var correctMessageSent = false;
var console = new ConsoleLogger();
var test = "Test";
console.LogReceived += delegate(string s) { correctMessageSent |= s == test; };
console.Log(test);
Assert.AreEqual(correctMessageSent, true);
}
}
}