Exemplo n.º 1
0
        public virtual void Initialize()
        {
            Configuration = null;
            TestStartTime = DateTime.Now;

            if (String.IsNullOrEmpty(TestName))
            {
                // this is a MSTest test
                TestName = TestContext.TestName;
                Microsoft.TeamFoundation.Migration.Toolkit.Constants.PluginsFolderName = ".";
            }

            TestEnvironment = MigrationTestEnvironment.Load(TestName);
            TestEnvironment.Initialize(TestProjectName);

            DirectoryInfo[] directories = new DirectoryInfo[]
            {
                new DirectoryInfo(Microsoft.TeamFoundation.Migration.Toolkit.Constants.PluginsFolderName),
                new DirectoryInfo("."),
            };

            m_adapterManager = new AdapterManager(directories);

            TestEnvironment.LeftEndPoint.TestName  = TestName;
            TestEnvironment.RightEndPoint.TestName = TestName;
        }
Exemplo n.º 2
0
 public static MigrationTestEnvironment Load(string testName)
 {
     return(MigrationTestEnvironment.Load(testName, Environment.GetEnvironmentVariable(DefaultTestEnvironmentVariableName)));
 }