public void TestCaseDirectiveConstructorSameTagAFewTimes() { var tag = Tag.Parse("I AM ? TAG"); var directive = new RippedOpenDirective(tag, tag, tag); var repr = directive.ToString(); Assert.AreEqual("{I AM ? TAG}...{I AM ? TAG}...{I AM ? TAG}", repr); }
public void TestCaseDirectiveConstructorOneTag() { var tag = Tag.Parse("HELLO $ WORLD"); var directive = new RippedOpenDirective(tag); var repr = directive.ToString(); Assert.AreEqual("{HELLO $ WORLD}", repr); }
public void TestCaseDirectiveConstructorTwoTags() { var tag1 = Tag.Parse("IF $ THEN"); var tag2 = Tag.Parse("END IF"); var directive = new RippedOpenDirective(tag1, tag2); var repr = directive.ToString(); Assert.AreEqual("{IF $ THEN}...{END IF}", repr); }