public void AppleHeadsetOutputsNameWhenPlayed() { var appleHeadSet = new AppleHeadset(OutputMock.Object); appleHeadSet.Play(""); OutputMock.Verify(output => output.WriteLine(appleHeadSet.GetName() + " sound")); }
public void AppleHeadsetWithoutOutput() { //Arrange var headset = new AppleHeadset(null); var expect = "No Output!"; //Act var actual = headset.Play(new object()); //Assert Assert.AreEqual(expect, actual); }
public void AppleHeadsetIsPlaying() { //Arrange IOutput output = new FakeOutput(); var headset = new AppleHeadset(output); var expect = "Test Output is running"; //Act var actual = headset.Play(new object()); //Assert Assert.AreEqual(expect, actual); }