示例#1
0
        public void WhitelistNotContains(string hostname)
        {
            var whitelist = Whitelist.FromXMLData(TestData.WhiltelistExampleXML);

            Assert.False(whitelist.Contains(hostname));
        }
示例#2
0
 public void WhitelistXSDFail(string xmlData)
 {
     Assert.ThrowsAny <System.Xml.Schema.XmlSchemaException>(
         () => Whitelist.FromXMLData(xmlData));
 }
示例#3
0
 public void WhitelistParseOK(string xmlData)
 {
     var whitelist = Whitelist.FromXMLData(xmlData);
 }
示例#4
0
 public void WhitelistInvalidXML(string xmlData)
 {
     Assert.ThrowsAny <XmlException>(() => Whitelist.FromXMLData(xmlData));
 }
示例#5
0
        public void WhitelistNotContains(string hostname)
        {
            var whitelist = Whitelist.FromXMLData(WhitelistTestMock.WhiltelistExampleXML);

            Assert.False(whitelist.IsMedMijNode(hostname));
        }