public void TouchTime_toGDL_Test_With_Nothing_Set() { // The type we are testing TouchTime target = new TouchTime(); // Since cnothing was set in constructor, resulting values and string output of toGDL should be 0 sec bool expected = true; bool actual = target.ToGDL().Equals("Touch time: 0 sec"); //Assert they are equal Assert.AreEqual(expected, actual); }
public void TouchTime_toGDL_Test_With_Variables_Set() { // The type we are testing TouchTime target = new TouchTime() { Value = 5, Unit = "secs" }; // Since the values were set in the constructor, we expect this in the output of toGDL bool expected = true; bool actual = target.ToGDL().Equals("Touch time: 5 secs"); //Assert they are equal Assert.AreEqual(expected, actual); }