public void WhitelistNotContains(string hostname) { var whitelist = Whitelist.FromXMLData(TestData.WhiltelistExampleXML); Assert.False(whitelist.Contains(hostname)); }
public void WhitelistXSDFail(string xmlData) { Assert.ThrowsAny <System.Xml.Schema.XmlSchemaException>( () => Whitelist.FromXMLData(xmlData)); }
public void WhitelistParseOK(string xmlData) { var whitelist = Whitelist.FromXMLData(xmlData); }
public void WhitelistInvalidXML(string xmlData) { Assert.ThrowsAny <XmlException>(() => Whitelist.FromXMLData(xmlData)); }
public void WhitelistNotContains(string hostname) { var whitelist = Whitelist.FromXMLData(WhitelistTestMock.WhiltelistExampleXML); Assert.False(whitelist.IsMedMijNode(hostname)); }