public void MatchShouldReturnFalseIfMatchingDate() { //Arrange var keys = new List <string>(); var matcher = new WhitelistMatcher(keys); //Act var result = matcher.Match(DateTime.UtcNow); //Assert Assert.IsFalse(result); }
public void MatchShouldReturnFalseIfEmptyWhitelistWithKey() { //Arrange var keys = new List <string>(); var matcher = new WhitelistMatcher(keys); //Act var result = matcher.Match(new Key("test2", "test2")); //Assert Assert.IsFalse(result); }
public void MatchShouldReturnFalseIfMatchingBoolean() { //Arrange var keys = new List <string>(); var matcher = new WhitelistMatcher(keys); //Act var result = matcher.Match(true); //Assert Assert.IsFalse(result); }
public void MatchShouldReturnTrueOnMatchingKey() { //Arrange var keys = new List <string>(); keys.Add("test1"); keys.Add("test2"); var matcher = new WhitelistMatcher(keys); //Act var result = matcher.Match("test2"); //Assert Assert.IsTrue(result); }
public void MatchShouldReturnFalseOnNonMatchingKeyWithKey() { //Arrange var keys = new List <string>(); keys.Add("test1"); keys.Add("test2"); var matcher = new WhitelistMatcher(keys); //Act var result = matcher.Match(new Key("test3", "test3")); //Assert Assert.IsFalse(result); }