public void CompareMetadata() { IConnector conn = null; // Initialize and connect var mNew = MetadataTester.GetMetadata(conn); var mOld = MetadataTester.OpenMetadata("MetadataCompare.json"); var results = new FullResults(mOld, mNew); if (!results.AreSame()) { Debug.Print(results.Print()); } Assert.IsTrue(results.AreSame()); }
public void CompareFakeMetadataAreSame() { var od = new ObjectDefinition() { FullName = "XXX", SupportedActionFullNames = new[] { "ASDF" }.ToList() }; var m = new Metadata(new List <IActionDefinition>(), new List <IObjectDefinition> { od }); var m2 = new Metadata(new List <IActionDefinition>(), new List <IObjectDefinition> { od }); var results = new FullResults(m, m2); Assert.IsTrue(results.AreSame()); }