public void Show_AcousticPulseRecognition() { //Arrange var fakeOutput = new FakeOutputShow(); var expected = $"If you read this text then Show method of IScreen interface works for AcousticPulseRecognition Screen\n"; //Act var screen = new AcousticPulseRecognition(pixelHeight: 320, pixelWidth: 480, 2.3, 1, fakeOutput); screen.Show(); //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()); }