Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: d6275f180b
Fetching contributors…

Cannot retrieve contributors at this time

61 lines (50 sloc) 1.647 kb
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();
}
}
}
Jump to Line
Something went wrong with that request. Please try again.