public void ApplyFilters_ParameterNotExistent_ExpectFalse() { Predicate <PieceOfClothing> test = new Predicate <PieceOfClothing>(x => x.Name == "ABC"); FilteringConditions filtering = new FilteringConditions() { Name = "new", Conditions = test }; var result = filtering.ApplyFilters(mockNullNameList); Assert.AreEqual(result.Count, 0); }
public void ApplyFilters_Name_ABCD_ExpectFalse() { Predicate <PieceOfClothing> test = new Predicate <PieceOfClothing>(x => x.Name == "ABCDE"); FilteringConditions filtering = new FilteringConditions() { Name = "new", Conditions = test }; var result = filtering.ApplyFilters(mockInputList); Assert.AreEqual(result.Count, 0); }