예제 #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);
        }
예제 #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);
 }
예제 #4
0
 public MockFileMapper(BaseTestFixture executingTestFixture, string physicalRoot, string applicationPath)
 {
     ExecutingTestFixture = executingTestFixture;
     PhysicalRoot = physicalRoot;
     this.ApplicationPath = applicationPath;
 }
예제 #5
0
 public MockFileMapper(BaseTestFixture executingTestFixture, string physicalRoot)
 {
     ExecutingTestFixture = executingTestFixture;
     PhysicalRoot = physicalRoot;
 }
예제 #6
0
 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;
 }
예제 #10
0
 public MockPartLoader(BaseTestFixture fixture, string mockPartFilePath)
     : base(null)
 {
     MockPartFilePath = mockPartFilePath;
 }
예제 #11
0
 /// <summary>
 /// Clears all folders and files from the testing directory.
 /// </summary>
 static public void ClearTestingDirectory(BaseTestFixture executingTestFixture)
 {
     ClearDirectory(GetTestingPath(executingTestFixture));
 }
예제 #12
0
 static public void ClearTestEntities(BaseTestFixture executingTestFixture)
 {
     // The whole testing directory gets deleted so this is skipped
 }
예제 #13
0
 static public string GetTestDataPath(BaseTestFixture executingTestFixture, string applicationName)
 {
     return(GetTestApplicationPath(executingTestFixture, applicationName) + Path.DirectorySeparatorChar + "App_Data");
 }
 public MockDb4oDataProviderInitializer(BaseTestFixture executingTestFixture)
 {
     ExecutingTestFixture = executingTestFixture;
 }
예제 #15
0
 public MockUrlCreator(BaseTestFixture executingTestFixture)
     : base(false)
 {
     ExecutingTestFixture = executingTestFixture;
     Initialize();
 }