Skip to content
This repository
tree: d6275f180b
Fetching contributors…

Cannot retrieve contributors at this time

file 60 lines (50 sloc) 1.647 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using TestContext = Microsoft.VisualStudio.TestTools.UnitTesting.TestContext;
using CsQuery.Tests._Performance;
using CsQuery.Tests;
using CsQuery.Utility;
using System.Reflection;
using System.Diagnostics;

namespace CsQuery.Tests
{
[SetUpFixture,TestClass]
    public class TestAssemblyConfig
    {
[SetUp]
        public static void AssemblySetup()
        {

            
            var solutionFolderTry = Support.GetFilePath("./TestResults/");
            if (solutionFolderTry == "")
            {
                solutionFolderTry = Support.GetFilePath("./CsQuery.Tests/");
            }
            //CsQueryTest.SolutionDirectory = Support.GetFilePath("./" + SolutionFolderName + "/");
            CsQueryTest.SolutionDirectory = Support.CleanFilePath(solutionFolderTry+"/../");
            PerformanceTest.SetupTestRun();

        }
[TearDown]
        public static void AssemblyTeardown()
        {
            PerformanceTest.CleanupTestRun();
        }

        /// <summary>
        /// Set up this test run - configuration of the file name is done in the static constructor so
        /// it's not starting a new file for each test fixture.
        /// </summary>

[AssemblyInitialize]
        public static void SetupTestRun(TestContext context)
        {
            AssemblySetup();

        }

[AssemblyCleanup]
        public static void CleanupTestRun()
        {
            AssemblyTeardown();
        }

    }
}
Something went wrong with that request. Please try again.