public void Touch_OpticalImaging() { //Arrange FakeOutputTouch fakeOutput = new FakeOutputTouch(); var expected = $"This touch was made on OpticalImaging screen\nIsn't it fantastic?\n\n"; //Act var screen = new OpticalImaging(pixelHeight: 320, pixelWidth: 480, 2.3, 1, fakeOutput); screen.Touch(); //Assert Assert.AreEqual(expected, fakeOutput.GetOutputAsText()); }
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 Touch_AcousticPulseRecognition() { //Arrange FakeOutputTouch fakeOutput = new FakeOutputTouch(); var expected = $"This touch was made on AcousticPulseRecognition screen\nIsn't it fantastic?\n\n"; //Act var screen = new AcousticPulseRecognition(pixelHeight: 320, pixelWidth: 480, 2.3, 1, fakeOutput); screen.Touch(); //Assert Assert.AreEqual(expected, fakeOutput.GetOutputAsText()); }