Пример #1
0
        public void TestThatGetLocationReturnsNull()
        {
            FireSensor sensor   = new FireSensor();
            string     location = sensor.GetLocation();

            Assert.Null(location);
        }
Пример #2
0
        public void TestThatGetLocationReturnsNull()
        {
            FireSensor sensor   = new FireSensor();
            string     location = sensor.GetLocation();

            Console.WriteLine(location);
            Assert.AreEqual(String.Empty, location);
        }
Пример #3
0
        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);
        }