public void WhenIChannelUpFrom18ItShouldBe3() { //Arrange Television tv = new Television(); tv.TurnOn(); tv.ChangeChannel(18); //Act tv.ChannelUp(); //Assert Assert.AreEqual(3, tv.CurrentChannel); }
public void ChannelUP_HappyPath() { // Arrange Television television = new Television(); int currentChannel; television.TurnOn(); currentChannel = television.CurrentChannel; // Act television.ChannelUp(); // Assert Assert.AreEqual(++currentChannel, television.CurrentChannel); }