Esempio n. 1
0
        public void Light_WHEN_Switch_called_twice_THEN_equals_zero()
        {
            const int lumens  = 500;
            const int wattage = 10;

            LightbulbBase bulb = new TestBulb(lumens, wattage);

            bulb.Switch();
            bulb.Switch();

            Assert.Equal(0, bulb.Light);
        }
Esempio n. 2
0
        public void Light_WHEN_Switch_called_THEN_equals_Lumens(int myLumens)
        {
            const int wattage = 10;

            LightbulbBase bulb = new TestBulb(myLumens, wattage);

            bulb.Switch();

            Assert.Equal(myLumens, bulb.Light);
        }