static public string GetTestApplicationPath(BaseTestFixture executingTestFixture, string applicationName) { if (executingTestFixture == null) { throw new ArgumentNullException("executingTestFixture"); } string path = GetTestingPath(executingTestFixture); return(path + Path.DirectorySeparatorChar + applicationName); }
static public string GetTestingPath(BaseTestFixture executingFixture) { if (executingFixture == null) { throw new ArgumentNullException("executingFixture"); } Assembly assembly = Assembly.GetExecutingAssembly(); string location = assembly.Location; string[] parts = location.Split(Path.DirectorySeparatorChar); string path = parts[0] + Path.DirectorySeparatorChar + "_testing"; path = path + Path.DirectorySeparatorChar + executingFixture.TestID.ToString(); return(path); }
public MockFileExistenceChecker(BaseTestFixture fixture, bool doesExist) { DoesExist = doesExist; FileMapper = new MockFileMapper(fixture); }
public MockFileMapper(BaseTestFixture executingTestFixture, string physicalRoot, string applicationPath) { ExecutingTestFixture = executingTestFixture; PhysicalRoot = physicalRoot; this.ApplicationPath = applicationPath; }
public MockFileMapper(BaseTestFixture executingTestFixture, string physicalRoot) { ExecutingTestFixture = executingTestFixture; PhysicalRoot = physicalRoot; }
public MockFileMapper(BaseTestFixture executingTestFixture) { ExecutingTestFixture = executingTestFixture; PhysicalRoot = TestUtilities.GetTestingPath(ExecutingTestFixture); }
public MockProjectionScanner(BaseTestFixture fixture) : base(null) { ControlLoader = new MockControlLoader(fixture); }
public MockControlLoader(BaseTestFixture fixture, string mockControlFilePath) : base(null) { MockControlFilePath = mockControlFilePath; Fixture = fixture; }
public MockControlLoader(BaseTestFixture fixture) : base(null) { Fixture = fixture; }
public MockPartLoader(BaseTestFixture fixture, string mockPartFilePath) : base(null) { MockPartFilePath = mockPartFilePath; }
/// <summary> /// Clears all folders and files from the testing directory. /// </summary> static public void ClearTestingDirectory(BaseTestFixture executingTestFixture) { ClearDirectory(GetTestingPath(executingTestFixture)); }
static public void ClearTestEntities(BaseTestFixture executingTestFixture) { // The whole testing directory gets deleted so this is skipped }
static public string GetTestDataPath(BaseTestFixture executingTestFixture, string applicationName) { return(GetTestApplicationPath(executingTestFixture, applicationName) + Path.DirectorySeparatorChar + "App_Data"); }
public MockDb4oDataProviderInitializer(BaseTestFixture executingTestFixture) { ExecutingTestFixture = executingTestFixture; }
public MockUrlCreator(BaseTestFixture executingTestFixture) : base(false) { ExecutingTestFixture = executingTestFixture; Initialize(); }