Пример #1
0
 public void OTFileIsKnownSfntVersionTest()
 {
     OTTag target = new OTTag(0x00010000);
     Assert.IsTrue(OTFile.IsKnownSfntVersion(target), "Error: valid tag not recognized");
     target = new OTTag("OTTO");
     Assert.IsTrue(OTFile.IsKnownSfntVersion(target), "Error: valid tag not recognized");
     target = new OTTag("ttcf");
     Assert.IsTrue(OTFile.IsKnownSfntVersion(target), "Error: valid tag not recognized");
     target = new OTTag("true");
     Assert.IsTrue(OTFile.IsKnownSfntVersion(target), "Error: valid tag not recognized");
     target = new OTTag("typ1");
     Assert.IsTrue(OTFile.IsKnownSfntVersion(target), "Error: valid tag not recognized");
     target = new OTTag("xxxx");
     Assert.IsFalse(OTFile.IsKnownSfntVersion(target), "Error: invalid tag recognized");
 }