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); }