Пример #1
0
 static void CheckInvariants( Core.IEntry entry )
 {
     Testing.ITestReport report = new Testing.ConsoleReport();
     Testing.TestRegistry.RunChecks( entry, report );
     Testing.TestRegistry.RunChecks( entry.Entries, report );
     Testing.TestRegistry.RunChecks( entry.Entity, report );
     foreach ( object element in entry.Elements ) {
       Testing.TestRegistry.RunChecks( element, report );
     }
 }
Пример #2
0
 static void CheckInvariants(Core.IEntry entry)
 {
     Testing.ITestReport report = new Testing.ConsoleReport();
     Testing.TestRegistry.RunChecks(entry, report);
     Testing.TestRegistry.RunChecks(entry.Entries, report);
     Testing.TestRegistry.RunChecks(entry.Entity, report);
     foreach (object element in entry.Elements)
     {
         Testing.TestRegistry.RunChecks(element, report);
     }
 }
Пример #3
0
 static void CheckInvariants( Ctrl.IContext con )
 {
     Testing.ITestReport report = new Testing.ConsoleReport();
     Testing.TestRegistry.RunChecks( con.Document, report );
     Testing.TestRegistry.RunChecks( con.Document.Entries, report );
     foreach ( Core.IEntry entry in con.Document.Entries.GetEntriesRecursive() ) {
       Testing.TestRegistry.RunChecks( entry, report );
       Testing.TestRegistry.RunChecks( entry.Entries, report );
       Testing.TestRegistry.RunChecks( entry.Entity, report );
       foreach ( object element in entry.Elements ) {
     Testing.TestRegistry.RunChecks( element, report );
       }
     }
 }
Пример #4
0
 static void CheckInvariants(Ctrl.IContext con)
 {
     Testing.ITestReport report = new Testing.ConsoleReport();
     Testing.TestRegistry.RunChecks(con.Document, report);
     Testing.TestRegistry.RunChecks(con.Document.Entries, report);
     foreach (Core.IEntry entry in con.Document.Entries.GetEntriesRecursive())
     {
         Testing.TestRegistry.RunChecks(entry, report);
         Testing.TestRegistry.RunChecks(entry.Entries, report);
         Testing.TestRegistry.RunChecks(entry.Entity, report);
         foreach (object element in entry.Elements)
         {
             Testing.TestRegistry.RunChecks(element, report);
         }
     }
 }