public void TestThatGetLocationReturnsNull() { FireSensor sensor = new FireSensor(); string location = sensor.GetLocation(); Assert.Null(location); }
public void TestThatGetLocationReturnsNull() { FireSensor sensor = new FireSensor(); string location = sensor.GetLocation(); Console.WriteLine(location); Assert.AreEqual(String.Empty, location); }
public void TestThatGetLocationReturnsLocation() { FireSensor sensor = new FireSensor("Boiler Room"); string location = sensor.GetLocation(); Assert.AreEqual("Boiler Room", location); FireSensor sensor_2 = new FireSensor("Factory"); string location_2 = sensor_2.GetLocation(); Assert.AreEqual("Factory", location_2); }