Пример #1
0
        public void ShouldParseViewer(string validCheer, string expectedViewer)
        {
            // Arrange

            // Act
            var sut = new Core.Cheer(validCheer);

            // Assert
            Assert.Equal(expectedViewer, sut.ViewerName);
        }
Пример #2
0
        public void ShouldParseValue(string validCheer, int expectedValue)
        {
            // Arrange

            // Act
            var sut = new Core.Cheer(validCheer);

            // Assert
            Assert.Equal(expectedValue, sut.Bits);
        }
Пример #3
0
        // [InlineData("// restarted cheered 500 on November 29, 2018", 2018, 11, 29)]
        public void ShouldParseDate(string validCheer, int year, int month, int day)
        {
            // Arrange
            var expectedDate = new DateTime(year, month, day);

            // Act
            var sut = new Core.Cheer(validCheer);

            // Assert
            Assert.Equal(expectedDate, sut.Date);
        }