示例#1
0
        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");
 }
示例#3
0
 public async Task TestResolvedWebClicks()
 {
     await ResolutionTestUtils.ResolveSaveDebuggingFileAndAssert(testsSubpath, "TestResolvedWebClicks", "webClicks");
 }
示例#4
0
 public async Task TestResolvedPovResolution()
 {
     await ResolutionTestUtils.ResolveSaveDebuggingFileAndAssert(testsSubpath, "TestResolvedPOVResolution", "POVResolution");
 }
示例#5
0
 public async Task TestResolvedOverrides()
 {
     await ResolutionTestUtils.ResolveSaveDebuggingFileAndAssert(testsSubpath, "TestResolvedOverrides", "overrides");
 }
示例#6
0
 /// <summary>
 /// Test if the mini dyn resolved entities match
 /// </summary>
 // [TestMethod]
 public async Task TestResolvedMiniDyn()
 {
     await ResolutionTestUtils.ResolveSaveDebuggingFileAndAssert(testsSubpath, "TestResolvedMiniDyn", "MiniDyn");
 }
示例#7
0
 public async Task TestResolvedKnowledgeGraph()
 {
     await ResolutionTestUtils.ResolveSaveDebuggingFileAndAssert(testsSubpath, "TestResolvedKnowledgeGraph", "KnowledgeGraph");
 }