public void AreAnyCohortsBothFullTimeAndNotActive() { //var doAny = PracticeData/*FILL IN LINQ EXPRESSION*/; var doAny = PracticeData.Any(cohort => cohort.FullTime == true && cohort.Active == false); Assert.IsTrue(doAny); //<-- change false to doAny }
public void DoAnyActiveCohortsHave3JuniorInstructors() { //var doAny = PracticeData/*FILL IN LINQ EXPRESSION*/; var doAny = PracticeData.Any(cohort => cohort.JuniorInstructors.Count() == 3); Assert.IsTrue(doAny); //<-- change false to doAny }
public void DoAnyCohortsHaveActivePrimaryInstructors() { //var doAny = PracticeData/*FILL IN LINQ EXPRESSION*/; var doAny = PracticeData.Any(cohort => cohort.PrimaryInstructor.Active == true); Assert.IsTrue(doAny); //<-- change false to doAny }
public void DoAnyCohortsHavePrimaryInstructorsBornIn1980s() { //var doAny = PracticeData/*FILL IN LINQ EXPRESSION*/; var doAny = PracticeData.Any(cohort => cohort.PrimaryInstructor.Birthday.Year >= 1980 & cohort.PrimaryInstructor.Birthday.Year >= 1989); Assert.IsTrue(doAny); //<-- change false to doAny }
public void AreAnyCohortsBothFullTimeAndNotActive() { //var doAny = PracticeData/*FILL IN LINQ EXPRESSION*/; var doAny = PracticeData.Any(c => c.FullTime && !c.Active); //Assert.IsTrue(false); //<-- change false to doAny Assert.IsTrue(doAny); }
public void DoAnyCohortsHaveActivePrimaryInstructors() { var doAny = PracticeData.Any(cohort => cohort.PrimaryInstructor.Active); Assert.IsTrue(doAny); }
public void DoAnyCohortsHavePrimaryInstructorsBornIn1980s() { var doAny = PracticeData.Any(cohort => cohort.PrimaryInstructor.Birthday.Year >= 1980 && cohort.PrimaryInstructor.Birthday.Year < 1990); Assert.IsTrue(doAny); }
public void AreAnyCohortsBothFullTimeAndNotActive() { var doAny = PracticeData.Any(c => c.FullTime && c.Active == false); Assert.IsTrue(doAny); //<-- change false to doAny }
public void DoAnyActiveCohortsHave3JuniorInstructors() { var doAny = PracticeData.Any(c => c.Active && c.JuniorInstructors.Count == 3); Assert.IsTrue(doAny); //<-- change false to doAny }
public void DoAnyCohortsHaveActivePrimaryInstructors() { var doAny = PracticeData.Any(c => c.PrimaryInstructor.Active == true); Assert.IsTrue(doAny); //<-- change false to doAny }
public void DoAnyCohortsHavePrimaryInstructorsBornIn1980s() { var doAny = PracticeData.Any(c => c.PrimaryInstructor.Birthday.Year >= 1980 && c.PrimaryInstructor.Birthday.Year < 1990); Assert.IsTrue(doAny); //<-- change false to doAny }
public void AreAnyCohortsBothFullTimeAndNotActive() { var doAny = PracticeData.Any(x => x.Active == false && x.FullTime); /*FILL IN LINQ EXPRESSION*/; Assert.IsTrue(doAny); //<-- change false to doAny }
public void AreAnyCohortsBothFullTimeAndNotActive() { var doAny = PracticeData.Any(c => { return(!c.Active && c.FullTime); }); Assert.IsTrue(doAny); }
public void DoAnyCohortsHavePrimaryInstructorsBornIn1980s() { var doAny = PracticeData.Any(c => { int year = c.PrimaryInstructor.Birthday.Year; return(year < 1990 && year > 1979); }); Assert.IsTrue(doAny); }
public void DoAnyActiveCohortsHave3JuniorInstructors() { var doAny = PracticeData.Any(cohort => cohort.Active && cohort.JuniorInstructors.Count == 3); Assert.IsTrue(doAny); }
public void AreAnyCohortsBothFullTimeAndNotActive() { var doAny = PracticeData.Any(cohort => cohort.FullTime && cohort.Active == false); Assert.IsTrue(doAny); }
public void DoAnyCohortsHavePrimaryInstructorsBornIn1980s() { var doAny = PracticeData.Any(x => Enumerable.Range(1980, 1989).Contains(Convert.ToInt32(x.PrimaryInstructor.Birthday.ToString("yyyy")))); Assert.IsTrue(doAny); //<-- change false to doAny }