Exemple #1
0
 public void TestNullFlights()
 {
     filter = new FlightFilter(5);
     if (filter.FFiltreOut(null) == null)
     {
         Assert.Pass();
     }
     else
     {
         Assert.Fail();
     }
 }
Exemple #2
0
 public void TestNotAllowedFilterType()
 {
     filter = new FlightFilter(5);
     if (filter.FFiltreOut(flights) == null)
     {
         Assert.Pass();
     }
     else
     {
         Assert.Fail();
     }
 }
Exemple #3
0
 public void TestEmptyFlights()
 {
     filter = new FlightFilter(5);
     if (filter.FFiltreOut(new List <Flight>()) == null)
     {
         Assert.Pass();
     }
     else
     {
         Assert.Fail();
     }
 }
Exemple #4
0
 public void Test3Quest()
 {
     filter = new FlightFilter(2);
     if (filter.FFiltreOut(flights).Count != 0)
     {
         Assert.Pass();
     }
     else
     {
         Assert.Fail();
     }
 }