GetOutput() public static method

public static GetOutput ( ) : string
return string
Exemplo n.º 1
0
        public void RunAllTests_UserSettings_ShuffledTestExecutionAndNoBatchWarning()
        {
            try
            {
                try
                {
                    VS.TestExplorer.SelectTestSettingsFile(VS.UserSettingsFile);

                    VS.TestExplorer.RunAllTests();

                    string output = VS.GetOutput();
                    output.Should().Contain("--gtest_shuffle");
                    output.Should().Contain("--gtest_repeat=3");
                    output.Should().NotContain(BatchTeardownWarning);
                }
                finally
                {
                    VS.TestExplorer.UnselectTestSettingsFile();
                }
            }
            catch (AutomationException exception)
            {
                exception.LogAndThrow();
            }
        }
Exemplo n.º 2
0
        public void RunAllTests_GlobalAndSolutionSettings_BatchTeardownWarning()
        {
            try
            {
                VS.TestExplorer.RunAllTests();

                VS.GetOutput().Should().Contain(BatchTeardownWarning);
            }
            catch (AutomationException exception)
            {
                exception.LogAndThrow();
            }
        }