Пример #1
0
 public void ToHex_NewLineCodes_Test(Options.NewLineCodes code, string expect)
 {
     Assert.AreEqual(expect, code.ToHex());
 }
Пример #2
0
 public void GetEnumProperty_Test(Options.NewLineCodes item, string expectedEntity, string expectedEscaped)
 {
     var actualEntity = item.GetEnumProperty(Options.EntityProperty);
     if (expectedEntity != null) {
         Assert.AreEqual(expectedEntity, actualEntity);
     } else {
         Assert.Null(actualEntity);
     }
     var actualEscaped = item.GetEnumProperty(Options.EscapedProperty);
     if (expectedEscaped != null) {
         Assert.AreEqual(expectedEscaped, actualEscaped);
     } else {
         Assert.Null(actualEscaped);
     }
 }