Esempio n. 1
0
        public void AppleHeadsetOutputsNameWhenPlayed()
        {
            var appleHeadSet = new AppleHeadset(OutputMock.Object);

            appleHeadSet.Play("");

            OutputMock.Verify(output => output.WriteLine(appleHeadSet.GetName() + " sound"));
        }
Esempio n. 2
0
        public void AppleHeadsetReturnsNameInNameMethod()
        {
            var appleHeadSet = new AppleHeadset(OutputMock.Object);

            var name = appleHeadSet.GetName();

            Assert.AreEqual(name, "AppleHeadset");
        }