public void ContainsMiss() { var whiteListManager = new WhiteListManager(); var result = whiteListManager.IsContained(a => a.ResourceName == "TestNotFound"); Assert.IsFalse(result); }
public void GetNullItem() { var whiteListManager = new WhiteListManager(); var result = whiteListManager.GetItem(a => a.ID == 0); Assert.IsNull(result); }
public void GetActualItem() { var whiteListManager = new WhiteListManager(); var item = new WhiteListObject { ResourceName = "Test" }; var resultID = whiteListManager.AddItem(item); var result = whiteListManager.GetItem(a => a.ID == resultID); Assert.IsNotNull(result); }
public void ContainsNull() { var whiteListManager = new WhiteListManager(); Assert.IsFalse(whiteListManager.IsContained(a => a == null)); }