コード例 #1
0
        public void Get_replacement_line(string originalLine)
        {
            // Arrange
            var extractor = new TestableCsExtractor();

            // Act
            var result = extractor.GetReplacementLine(originalLine);

            // Assert
            Assert.That(result, Is.EqualTo("replacement line"));
        }
        public void Get_replacement_line(string originalLine)
        {
            // Arrange
            var extractor = new TestableCsExtractor();

            // Act
            var result = extractor.GetReplacementLine(originalLine);

            // Assert
            Assert.That(result, Is.EqualTo("replacement line"));
        }
コード例 #3
0
        public void Is_end_of_block(string originalLine)
        {
            // Arrange
            var extractor = new TestableCsExtractor();

            // Act
            var isEndOfBlock = extractor.IsEndOfBlock(originalLine);

            Console.WriteLine(originalLine.Trim(' ', '\t'));

            // Assert
            Assert.That(isEndOfBlock, Is.True);
        }
        public void Is_end_of_block(string originalLine)
        {
            // Arrange
            var extractor = new TestableCsExtractor();

            // Act
            var isEndOfBlock = extractor.IsEndOfBlock(originalLine);

            Console.WriteLine(originalLine.Trim(' ', '\t'));

            // Assert
            Assert.That(isEndOfBlock, Is.True);
        }