public void Append_GivenAMessage_AppendsTheMessage() { // Arrange IGameLogService classUnderTest = new GameLogService(); var expected = "bar<br>foo"; // Act classUnderTest.Append("foo"); var actual = classUnderTest.Append("bar"); // Assert Assert.AreEqual(expected, actual); }
public void Reset_WithCurrentState_ReturnsEmpty() { // Arrange IGameLogService classUnderTest = new GameLogService(); var expected = ""; // Act classUnderTest.Append("foo"); classUnderTest.Append("bar"); var actual = classUnderTest.Reset(); // Assert Assert.AreEqual(expected, actual); }