Ejemplo n.º 1
0
        private DocFile GetDocFileForComplexType(ComplexType testType)
        {
            string markDown = this.documentationGenerator.GetMarkDownForType(this.entityFramework, testType);

            DocSet  docSet   = new DocSet(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location));
            DocFile testFile = new DocFileForTesting(markDown, @"\resources.md", @"\resources.md", docSet);

            ValidationError[] errors = null;
            testFile.Scan(string.Empty, out errors);
            Assert.IsFalse(errors.WereWarningsOrErrors(), "Expected no validation warnings/errors: {0}", errors.ErrorsToString());
            return(testFile);
        }
Ejemplo n.º 2
0
        private DocFile GetDocFileForComplexType(ComplexType testType)
        {
            string markDown = this.documentationGenerator.GetMarkDownForType(this.entityFramework, testType);

            DocSet docSet = new DocSet(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location));

            DocSet.SchemaConfig.DefaultNamespace = "microsoft.graph";
            DocFile testFile = new DocFileForTesting(markDown, @"\resources.md", @"\resources.md", docSet);
            var     issues   = new IssueLogger();

            testFile.Scan(string.Empty, issues.For("testFile"));
            Assert.IsFalse(issues.Issues.WereWarningsOrErrors(), "Expected no validation warnings/errors: {0}", issues.Issues.ErrorsToString());
            return(testFile);
        }