public void AppleChargerWithoutOutput() { //Arrange var charger = new AppleCharger(110, null); var expect = "No Output!"; //Act var actual = charger.Charge(new object()); //Assert Assert.AreEqual(expect, actual); }
public void AppleChargerIsPlaying() { //Arrange IOutput output = new FakeOutput(); var charger = new AppleCharger(110, output); var expect = "Test Output is running"; //Act var actual = charger.Charge(new object()); //Assert Assert.AreEqual(expect, actual); }