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

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

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