Beispiel #1
0
        public void GetResolutionInfoTest()
        {
            Mp3Player Resolutiontest1 = new Mp3Player();

            Resolutiontest1.DisplayHeight = 5;
            Resolutiontest1.DisplayWidth  = 5;
            Assert.AreEqual("Resolution: 25 pixels", Resolutiontest1.GetResolutionInfo());
            Mp3Player Resolutiontest2 = new Mp3Player();

            Resolutiontest2.DisplayHeight = 10;
            Resolutiontest2.DisplayWidth  = 10;
            Assert.AreEqual("Resolution: 100 pixels", Resolutiontest2.GetResolutionInfo());
        }