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 virtual void Initialize()
        {
            Configuration   = null;
            TestStartTime   = DateTime.Now;
            TestEnvironment = MigrationTestEnvironmentFactory.CreateMigrationTestEnvironment(TestContext.TestName);
            TestEnvironment.Initialize(TestProjectName);

            Microsoft.TeamFoundation.Migration.Toolkit.Constants.PluginsFolderName = ".";
            m_adapterManager = new AdapterManager(new DirectoryInfo(Microsoft.TeamFoundation.Migration.Toolkit.Constants.PluginsFolderName));

            TestEnvironment.SourceTCAdapterEnvironment.TestName = TestContext.TestName;
            TestEnvironment.TargetTCAdapterEnvironment.TestName = TestContext.TestName;

            TestEnvironment.SourceTCAdapterEnvironment.TestStartTime = TestStartTime;
            TestEnvironment.TargetTCAdapterEnvironment.TestStartTime = TestStartTime;
        }