コード例 #1
0
        public void TrimStartToTest(
            string text,
            IReadOnlyCollection <string> tokens,
            string expectedResult)
        {
            ScanPreprocessor scanPreprocessor = new ScanPreprocessor();

            string result = scanPreprocessor.TrimStartTo(text, tokens);

            result.Should().Be(expectedResult);
        }
コード例 #2
0
        public void PreprocessTest(
            string text,
            string[] tokens,
            string expectedResult)
        {
            ScanPreprocessor scanPreprocessor = new ScanPreprocessor();

            string result = scanPreprocessor.Preprocess(text, tokens);

            result.Should().Be(expectedResult);
        }