Пример #1
0
        public void ShouldReadSmallVersionOfJegerregisteret98()
        {
            ArchiveFile archive = ArchiveFile.Read("..\\..\\TestData\\tar\\jegerregisteret98-small\\20b5f34c-4411-47c3-a0f9-0a8bca631603.tar", ArchiveType.Fagsystem);

            Arkade.Core.Arkade arkade     = new Arkade.Core.Arkade();
            TestSession        testSesson = arkade.RunTests(archive);

            testSesson.Should().NotBeNull();
            TestSuite testSuite = testSesson.TestSuite;

            testSuite.Should().NotBeNull();
        }
Пример #2
0
        public void ShouldReadSmallVersionOfJegerregisteret98()
        {
            ArkadeProcessingArea.Establish(Path.Combine(Environment.CurrentDirectory, "TestData"));

            ArchiveFile archive = ArchiveFile.Read("..\\..\\TestData\\tar\\jegerregisteret98-small\\20b5f34c-4411-47c3-a0f9-0a8bca631603.tar", ArchiveType.Fagsystem);

            Arkade.Core.Base.Arkade arkade     = new Arkade.Core.Base.Arkade();
            TestSession             testSesson = arkade.RunTests(archive);

            testSesson.Should().NotBeNull();
            TestSuite testSuite = testSesson.TestSuite;

            testSuite.Should().NotBeNull();
        }
        public void ShouldRunTestsOnFiskermanntallet()
        {
            ArchiveFile archive = ArchiveFile.Read("..\\..\\TestData\\tar\\fiskermanntallet-anonymized\\dab6c748-8d1a-4b6d-b091-3a7b8b3cb255.tar", ArchiveType.Noark3);

            Arkade.Core.Arkade arkade     = new Arkade.Core.Arkade();
            TestSession        testSesson = arkade.RunTests(archive);

            testSesson.Should().NotBeNull();
            TestSuite testSuite = testSesson.TestSuite;

            testSuite.Should().NotBeNull();
            testSuite.TestRuns.Should().NotBeNullOrEmpty();

            List <TestRun> analyseFindMinMaxValues = testSuite.TestRuns
                                                     .Where(run => run.TestName == AnalyseFindMinMaxValues.Name)
                                                     .ToList();

            analyseFindMinMaxValues.Count.Should().Be(1);
        }
Пример #4
0
        public void Test1()
        {
            ArchiveFile archive1 =
                ArchiveFile.Read("..\\..\\TestData\\tar\\Noark3-eksempel-1\\c3db9d4e-720c-4f75-bfb6-de90231dc44c.tar", ArchiveType.Noark3);

            Arkade.Core.Arkade arkade     = new Arkade.Core.Arkade();
            TestSession        testSesson = arkade.RunTests(archive1);

            testSesson.Should().NotBeNull();
            TestSuite testSuite = testSesson.TestSuite;

            testSuite.Should().NotBeNull();
            testSuite.TestRuns.Should().NotBeNullOrEmpty();

            List <TestRun> analyseFindMinMaxValues = testSuite.TestRuns
                                                     .Where(run => run.TestName == AnalyseFindMinMaxValues.Name)
                                                     .ToList();

            analyseFindMinMaxValues.Count.Should().Be(1);
        }
Пример #5
0
        public void Test1()
        {
            ArkadeProcessingArea.Establish(Path.Combine(Environment.CurrentDirectory, "TestData"));

            ArchiveFile archive1 =
                ArchiveFile.Read(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + "/TestData/tar/Noark3-eksempel-1/c3db9d4e-720c-4f75-bfb6-de90231dc44c.tar", ArchiveType.Noark3);

            Arkade.Core.Arkade arkade     = new Arkade.Core.Arkade();
            TestSession        testSesson = arkade.RunTests(archive1);

            testSesson.Should().NotBeNull();
            TestSuite testSuite = testSesson.TestSuite;

            testSuite.Should().NotBeNull();
            testSuite.TestRuns.Should().NotBeNullOrEmpty();

            List <TestRun> analyseFindMinMaxValues = testSuite.TestRuns
                                                     .Where(run => run.TestName == AnalyseFindMinMaxValues.Name)
                                                     .ToList();

            analyseFindMinMaxValues.Count.Should().Be(1);
        }
Пример #6
0
        public void Test1()
        {
            ArkadeProcessingArea.Establish(Path.Combine(Environment.CurrentDirectory, "TestData"));

            ArchiveFile archive1 =
                ArchiveFile.Read(AppDomain.CurrentDomain.BaseDirectory + "\\TestData\\tar\\Noark3-eksempel-1\\c3db9d4e-720c-4f75-bfb6-de90231dc44c.tar", ArchiveType.Noark3);

            Arkade.Core.Base.Arkade arkade     = new Arkade.Core.Base.Arkade();
            TestSession             testSesson = arkade.RunTests(archive1);

            testSesson.Should().NotBeNull();
            TestSuite testSuite = testSesson.TestSuite;

            testSuite.Should().NotBeNull();
            testSuite.TestRuns.Should().NotBeNullOrEmpty();

            var            analyseFindMinMaxValuesTestId = new TestId(TestId.TestKind.Addml, 9);
            List <TestRun> analyseFindMinMaxValues       = testSuite.TestRuns
                                                           .Where(run => run.TestId.Equals(analyseFindMinMaxValuesTestId))
                                                           .ToList();

            analyseFindMinMaxValues.Count.Should().Be(1);
        }