public void SwitchOff_IsOffTrue() { //arrange var loggger = new NullLogger <MyLight>(); var x = new MyLight(loggger); //act x.Off(); //assert Assert.False(x.IsOn); }