Exemplo n.º 1
0
 public void IsKeyword_WithStringLiteralTestValueWithoutLeadingDot_ShouldReturnFalse()
 {
     Assert.IsFalse(XmlHelpKeyword.IsKeyword("Test"));
 }
Exemplo n.º 2
0
 public void IsKeyword_WithStringLiteralTestLowerCase_ShouldIgnoreCaseAndReturnTrue()
 {
     Assert.IsTrue(XmlHelpKeyword.IsKeyword(".test"));
 }
Exemplo n.º 3
0
 public void IsKeyword_WithStringLiteralTestAllUpperCaseAndLeadingWhitespaces_ShouldIgnoreCaseAndWhitespacesAndReturnTrue()
 {
     Assert.IsTrue(XmlHelpKeyword.IsKeyword("    .TEST    "));
 }
Exemplo n.º 4
0
 public void IsKeyword_WithStringLiteralTestAndLeadingAndClosingWhitespace_ShouldIgnoreWhitespacesAtBothEndsAndReturnTrue()
 {
     Assert.IsTrue(XmlHelpKeyword.IsKeyword("      .Test    "));
 }
Exemplo n.º 5
0
 public void IsKeyword_WithStringLiteralTestAndFollowingInformation_ShouldIgnoreFollowingInformationAndReturnTrue()
 {
     Assert.IsTrue(XmlHelpKeyword.IsKeyword(".Test MyTest"));
 }
Exemplo n.º 6
0
 public void IsKeyword_WithStringLiteralTestValueLeadingDotAndWhiteSpacesBefore_ShouldIgnoreLeadingWhiteSpacesAndReturnTrue()
 {
     Assert.IsTrue(XmlHelpKeyword.IsKeyword("    .Test"));
 }
Exemplo n.º 7
0
 public void IsKeyword_WithStringLiteralTestValueLeadingDot_ShouldReturnTrue()
 {
     Assert.IsTrue(XmlHelpKeyword.IsKeyword(".Test"));
 }
Exemplo n.º 8
0
 public void IsKeyword_WithStringLiteralTestValueAndLeadingMinus_ShouldReturnFalse()
 {
     Assert.IsFalse(XmlHelpKeyword.IsKeyword("-Test"));
 }