Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        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);
        }