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}"); }
public CSharpSqlServerBaseClassParser(TargetFramework targetFramework, CSharpVersion cSharpVersion, BaseClassParseOptions parseOptions) : base( new List <string> { targetFramework.ToString(), cSharpVersion.ToString() }, parseOptions) { }
public TestBaseClassParser(List <string> validKeys, BaseClassParseOptions parseOptions) : base(validKeys, parseOptions) { }