コード例 #1
0
        public void ParseRusLine_Test()
        {
            // Arrange
             var processor = new LineProcessor();
             var expectedResult = GetExpectedRusResult();

             // Act
             var actualResult = processor.Process(testRusLine);

             // Assert
             AssertWordItemsCollectionsEquality(expectedResult, actualResult);
        }
コード例 #2
0
        public void ParseLineWithoutWords_Test()
        {
            // Arrange
             var processor = new LineProcessor();
             var expectedResult = new List<WordItem>();

             // Act
             var actualResult = processor.Process(testWithoutWordsLine);

             // Assert
             AssertWordItemsCollectionsEquality(expectedResult, actualResult);
        }