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