public async Task TestResolveTestCorpus() { Assert.IsTrue(Directory.Exists(Path.GetFullPath(SchemaDocsPath)), "SchemaDocsRoot not found!!!"); var cdmCorpus = new CdmCorpusDefinition(); cdmCorpus.SetEventCallback(new EventCallback { Invoke = CommonDataModelLoader.ConsoleStatusReport }, CdmStatusLevel.Warning); cdmCorpus.Storage.Mount("local", new LocalAdapter(SchemaDocsPath)); var manifest = await cdmCorpus.FetchObjectAsync <CdmManifestDefinition>(TestHelper.CdmStandardSchemaPath) as CdmManifestDefinition; var directives = new AttributeResolutionDirectiveSet(new HashSet <string> { "normalized", "referenceOnly" }); var allResolved = await ResolutionTestUtils.ListAllResolved(cdmCorpus, directives, manifest, new StringSpewCatcher()); Assert.IsTrue(!string.IsNullOrWhiteSpace(allResolved)); }
public async Task TestResolvedTraitGroupE2E() { await ResolutionTestUtils.ResolveSaveDebuggingFileAndAssert(testsSubpath, "TestResolvedTraitGroup", "E2EResolution"); }
public async Task TestResolvedWebClicks() { await ResolutionTestUtils.ResolveSaveDebuggingFileAndAssert(testsSubpath, "TestResolvedWebClicks", "webClicks"); }
public async Task TestResolvedPovResolution() { await ResolutionTestUtils.ResolveSaveDebuggingFileAndAssert(testsSubpath, "TestResolvedPOVResolution", "POVResolution"); }
public async Task TestResolvedOverrides() { await ResolutionTestUtils.ResolveSaveDebuggingFileAndAssert(testsSubpath, "TestResolvedOverrides", "overrides"); }
/// <summary> /// Test if the mini dyn resolved entities match /// </summary> // [TestMethod] public async Task TestResolvedMiniDyn() { await ResolutionTestUtils.ResolveSaveDebuggingFileAndAssert(testsSubpath, "TestResolvedMiniDyn", "MiniDyn"); }
public async Task TestResolvedKnowledgeGraph() { await ResolutionTestUtils.ResolveSaveDebuggingFileAndAssert(testsSubpath, "TestResolvedKnowledgeGraph", "KnowledgeGraph"); }