public void GetNShoesTest(int n) { var x = new LambdaExamples.ListManipulation(); var list = x.GetTopNShoes(n); list.ShouldNotBeEmpty(); list.Count.ShouldBe(n); }
public void RemoveBrandTest() { var x = new LambdaExamples.ListManipulation(); var list = x.RemoveBrand("Brooks"); list.ShouldNotBeEmpty(); list.Count(x => x.Brand == "Brooks").ShouldBe(0); }
public void RemoveBrandNotListTest() { var x = new LambdaExamples.ListManipulation(); var list = x.RemoveWhereNotInList(new List <LambdaExamples.RemoveMe> { new LambdaExamples.RemoveMe("Nike", "Running") }); list.ShouldNotBeEmpty(); list.Count(x => x.Brand == "Nike" && x.Category == "Running").ShouldNotBe(0); }