GoogleTestAdapterUiTests.VS.SetupVanillaVsExperimentalInstance C# (CSharp) Méthode

SetupVanillaVsExperimentalInstance() public static méthode

public static SetupVanillaVsExperimentalInstance ( string suffix ) : void
suffix string
Résultat void
        public static void SetupVanillaVsExperimentalInstance(string suffix)
        {
            AskIfNotOnBuildServerAndProductiveVs(suffix);

            try
            {
                _visualStudioInstance = new VsExperimentalInstance(VsExperimentalInstance.Versions.VS2015, suffix);
                if (string.IsNullOrEmpty(suffix))
                {
                    _keepDirtyVsInstance = true;
                    _visualStudioInstance.InstallExtension(VsixPath);
                }
                else
                {
                    if (!_keepDirtyVsInstance)
                    {
                        _keepDirtyVsInstance = AskToCleanIfExists();
                    }
                    if (!_keepDirtyVsInstance)
                    {
                        _visualStudioInstance.FirstTimeInitialization();
                        _visualStudioInstance.InstallExtension(VsixPath);
                    }
                }
            }
            catch (AutomationException exception)
            {
                exception.LogAndThrow();
            }
        }

Usage Example

Exemple #1
0
 public static void SetupVanillaVsExperimentalInstance(TestContext testContext)
 {
     VS.SetupVanillaVsExperimentalInstance("GoogleTestAdapterUiTests");
     VS.LaunchVsExperimentalInstance();
 }