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 ); } }
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); } }
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 ); } } }
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); } } }