Esempio n. 1
0
 public void Add(TestDescription test)
 {
     if (Tests != null && IsEveryTest)
     {
         return;
     }
     if (Tests == null || test.IsAllTests)
     {
         Tests = new List <TestDescription>(1);
     }
     Tests.Add(test);
 }
Esempio n. 2
0
 private bool Equals(TestDescription other)
 {
     return(Id == other.Id);
 }
Esempio n. 3
0
 private bool Equals(TestDescription other)
 {
     return(string.Equals(Guid, other.Guid) || IsAllTests || other.IsAllTests);
 }
Esempio n. 4
0
 static TestDescription()
 {
     AllTestsDescription = new TestDescription(AllTestsGuid, "All Tests");
 }
Esempio n. 5
0
 protected bool Equals(TestDescription other)
 {
     return(string.Equals(Guid, other.Guid));
 }
Esempio n. 6
0
 public bool Contains(TestDescription test)
 {
     return(IsEveryTest || Tests.Any(t => t.Equals(test)));
 }
Esempio n. 7
0
 static TestListDescription()
 {
     EveryTests     = new TestListDescription(new[] { TestDescription.AllTests() });
     NoTestInstance = new TestListDescription(null);
 }