public void Test11CompareAllPartsWithFinishOk() { //SETUP var comparer = new CompareEfSql(); ISuccessOrErrors status; //EXECUTE using (var db = new TestEf6DataTypesDb()) { comparer.CompareEfPartStart(db); status = comparer.CompareEfPartWithDb <DataTop>(db); } using (var db = new TestEf6ComplexDb()) { status.Combine(comparer.CompareEfPartWithDb <DataTop>(db)); } using (var db = new TestEf6PublicPrivateDb()) { status.Combine(comparer.CompareEfPartWithDb <DataTop>(db)); } using (var db = new TestEf6RelationshipsDb()) { status.Combine(comparer.CompareEfPartWithDb <DataTop>(db)); } status.Combine(comparer.CompareEfPartFinalChecks()); //VERIFY status.ShouldBeValid(); status.Warnings.Count.ShouldEqual(0, string.Join("\n", status.Warnings)); }
public void Test02CompareEfPartComplexDbOk() { using (var db = new TestEf6ComplexDb()) { //SETUP var comparer = new CompareEfSql(); //EXECUTE comparer.CompareEfPartStart(db); var status = comparer.CompareEfPartWithDb <DataTop>(db); //VERIFY status.ShouldBeValid(); status.Warnings.Count.ShouldEqual(0, string.Join("\n", status.Warnings)); } }