Exemplo n.º 1
0
        private TestRun RunTest()
        {
            Archive archive = new Core.ArchiveBuilder().WithWorkingDirectoryRoot("c:\\temp").Build();
            var     validateXmlWithSchema = new ValidateXmlWithSchema(new ArchiveContentMockReader(_archiveContent, _archiveStructureContent));

            validateXmlWithSchema.Test(archive);
            return(validateXmlWithSchema.GetTestRun());
        }
Exemplo n.º 2
0
        private TestRun RunTest()
        {
            Archive archive = new Core.ArchiveBuilder().WithWorkingDirectoryRoot("c:\\temp").Build();
            var     validateXmlWithSchema = new ValidateXmlWithSchema();

            validateXmlWithSchema.Test(archive);
            return(validateXmlWithSchema.GetTestRun());
        }
Exemplo n.º 3
0
        private TestRun RunTest()
        {
            var tmpFolder = new DirectoryInfo(Path.GetTempPath() + "/" + Path.GetRandomFileName());

            tmpFolder.Create();
            Archive archive = new Core.ArchiveBuilder().WithWorkingDirectoryRoot(tmpFolder.FullName).Build();
            var     validateXmlWithSchema = new ValidateXmlWithSchema();

            validateXmlWithSchema.Test(archive);
            return(validateXmlWithSchema.GetTestRun());
        }
Exemplo n.º 4
0
        private static TestRun CreateTestRun(string workingDirectory)
        {
            Archive archive = new ArchiveBuilder()
                              .WithArchiveType(ArchiveType.Noark5)
                              .WithWorkingDirectoryRoot(workingDirectory)
                              .WithWorkingDirectoryExternalContent(workingDirectory)
                              .Build();

            var validateXmlWithSchema = new ValidateXmlWithSchema();

            validateXmlWithSchema.Test(archive);

            return(validateXmlWithSchema.GetTestRun());
        }