public void AppleHeadsetOutputsNameWhenPlayed() { var appleHeadSet = new AppleHeadset(OutputMock.Object); appleHeadSet.Play(""); OutputMock.Verify(output => output.WriteLine(appleHeadSet.GetName() + " sound")); }
public void AppleHeadsetReturnsNameInNameMethod() { var appleHeadSet = new AppleHeadset(OutputMock.Object); var name = appleHeadSet.GetName(); Assert.AreEqual(name, "AppleHeadset"); }