示例#1
0
        public void TestTwoParam_OneProvided_OneNotProvided_RemoveMultipleBlankLines()
        {
            var template =
                @"string outside of check

@@@IFCHECK@@@
text inside ifcheck
@@@//IFCHECK@@@

@@@ANOTHERCHECK@@@
hello
line
another line
@@@//ANOTHERCHECK@@@";

            var expected =
                @"string outside of check

hello
line
another line";

            var parseOptions = new BaseClassParseOptions
            {
                RemoveMultipleBlankLines = true
            };

            var parser = new TestBaseClassParser(new List <string> {
                "ANOTHERCHECK"
            }, parseOptions);

            var actual = parser.Parse(template);

            Assert.IsTrue(actual == expected, $"received: {actual}");
        }
示例#2
0
 public CSharpSqlServerBaseClassParser(TargetFramework targetFramework, CSharpVersion cSharpVersion,
                                       BaseClassParseOptions parseOptions) : base(
         new List <string> {
     targetFramework.ToString(), cSharpVersion.ToString()
 }, parseOptions)
 {
 }
示例#3
0
 public TestBaseClassParser(List <string> validKeys, BaseClassParseOptions parseOptions) : base(validKeys, parseOptions)
 {
 }