コード例 #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);
        }
コード例 #3
0
 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);
 }
コード例 #7
0
 public MockProjectionScanner(BaseTestFixture fixture)
     : base(null)
 {
     ControlLoader = new MockControlLoader(fixture);
 }
コード例 #8
0
 public MockControlLoader(BaseTestFixture fixture, string mockControlFilePath)
     : base(null)
 {
     MockControlFilePath = mockControlFilePath;
     Fixture = fixture;
 }
コード例 #9
0
 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");
 }
コード例 #14
0
 public MockDb4oDataProviderInitializer(BaseTestFixture executingTestFixture)
 {
     ExecutingTestFixture = executingTestFixture;
 }
コード例 #15
0
 public MockUrlCreator(BaseTestFixture executingTestFixture)
     : base(false)
 {
     ExecutingTestFixture = executingTestFixture;
     Initialize();
 }