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