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