public void Touch_SurfaceAcousticWave() { //Arrange FakeOutputTouch fakeOutput = new FakeOutputTouch(); var expected = $"This touch was made on SurfaceAcousticWave screen\nIsn't it fantastic?\n\n"; //Act var screen = new SurfaceAcousticWave(pixelHeight: 320, pixelWidth: 480, 2.3, 5, fakeOutput); screen.Touch(); //Assert Assert.AreEqual(expected, fakeOutput.GetOutputAsText()); }
public void Show_SurfaceAcousticWave() { //Arrange FakeOutputShow fakeOutput = new FakeOutputShow(); var expected = $"If you read this text then Show method of IScreen interface works for SurfaceAcousticWave Screen\n"; //Act var screen = new SurfaceAcousticWave(pixelHeight: 320, pixelWidth: 480, 2.3, 5, fakeOutput); screen.Show(); //Assert Assert.AreEqual(expected, fakeOutput.GetOutputAsText()); }