Exemple #1
0
        static public string GetTestApplicationPath(BaseTestFixture executingTestFixture, string applicationName)
        {
            if (executingTestFixture == null)
            {
                throw new ArgumentNullException("executingTestFixture");
            }

            string path = GetTestingPath(executingTestFixture);

            return(path + Path.DirectorySeparatorChar + applicationName);
        }
Exemple #2
0
        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;
 }
Exemple #11
0
 /// <summary>
 /// Clears all folders and files from the testing directory.
 /// </summary>
 static public void ClearTestingDirectory(BaseTestFixture executingTestFixture)
 {
     ClearDirectory(GetTestingPath(executingTestFixture));
 }
Exemple #12
0
 static public void ClearTestEntities(BaseTestFixture executingTestFixture)
 {
     // The whole testing directory gets deleted so this is skipped
 }
Exemple #13
0
 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();
 }