6 types derived from TestCommand
dotnet-MsiInstallation.Tests (1)
Framework\VMControl.cs (1)
323class RemoteCommand : TestCommand
Microsoft.NET.TestFramework (5)
Commands\DotnetCommand.cs (1)
6public class DotnetCommand : TestCommand
Commands\MSBuildCommand.cs (1)
8public class MSBuildCommand : TestCommand
Commands\MSBuildVersionCommand.cs (1)
6public class MSBuildVersionCommand : TestCommand
Commands\NuGetExeRestoreCommand.cs (1)
6public class NuGetExeRestoreCommand : TestCommand
Commands\RunExeCommand.cs (1)
6public class RunExeCommand : TestCommand
57 references to TestCommand
dotnet.Tests (23)
CommandTests\Pack\PackTests.cs (2)
22var packCommand = new DotnetPackCommand(Log) 205var packCommand = new DotnetPackCommand(Log)
CommandTests\Run\GivenDotnetRootEnv.cs (2)
27var runCommand = new DotnetCommand(Log, "run") 47var runCommand = new DotnetCommand(Log, "run")
CommandTests\Run\GivenDotnetRunBuildsCsProj.cs (1)
768var command = new DotnetCommand(Log, "run")
CommandTests\Run\GivenDotnetRunIsInterrupted.cs (3)
28var command = new DotnetCommand(Log, "run", "-v:q") 89var command = new DotnetCommand(Log, "run") 150var command = new DotnetCommand(Log, "run")
CommandTests\Test\GivenDotnetTestForwardDotnetRootEnvironmentVariables.cs (1)
25var command = new DotnetTestCommand(Log, disableNewOutput: true).WithWorkingDirectory(testAsset.Path);
CommandTests\Test\GivenDotnetTestsRunsInDifferentCultures.cs (1)
25var command = new DotnetTestCommand(Log, disableNewOutput: true).WithWorkingDirectory(testAsset.Path).WithCulture(locale);
CommandTests\Tool\Install\ToolInstallGlobalOrToolPathCommandTests.cs (1)
668var toolInstallGlobalOrToolPathCommand = new DotnetCommand(Log, "tool", "install", "-g", UnlistedPackageId, "--add-source", nugetSourcePath)
CommandTests\Tool\Restore\ToolRestoreCommandTests.cs (2)
360var toolRestoreCommand = new DotnetCommand(Log, "tool", "restore") 415var toolRestoreCommand = new DotnetCommand(Log, "tool", "restore")
GivenThatTheUserIsRunningDotNetForTheFirstTime.cs (8)
20public TestCommand Setup(ITestOutputHelper log, TestAssetsManager testAssets, [CallerMemberName] string testName = null) 28var command = new DotnetCommand(log) 61var command = dotnetFirstTime.Setup(log, testAssets, testName: "Dotnet_first_time_experience_tests"); 166var command = dotnetFirstTime.Setup(Log, _testAssetsManager); 183var command = dotnetFirstTime.Setup(Log, _testAssetsManager); 205var command = dotnetFirstTime.Setup(Log, _testAssetsManager); 218var command = dotnetFirstTime.Setup(Log, _testAssetsManager); 234var command = dotnetFirstTime.Setup(Log, _testAssetsManager);
TestCommandExtensions.cs (2)
8public static TestCommand WithUserProfileRoot(this TestCommand testCommand, string path)
dotnet-MsiInstallation.Tests (1)
Framework\VirtualMachine.cs (1)
277TestCommand.LogCommandResult(Log, result.ToCommandResult());
Microsoft.DotNet.PackageInstall.Tests (2)
EndToEndToolTests.cs (2)
517public static TestCommand WithEnvironmentVariables(this TestCommand command, string homeFolder)
Microsoft.NET.Build.Tests (19)
ArtifactsOutputPathTests.cs (2)
613public static TestCommand DisableDirectoryBuildProps(this TestCommand command)
GivenFrameworkReferences.cs (2)
327var restoreCommand = new RestoreCommand(testAsset) 332var buildCommand = new BuildCommand(testAsset)
GivenThatWeHaveAPackageReferenceWithAliases.cs (3)
48var buildCommand = new BuildCommand(testAsset) 93var buildCommand = new BuildCommand(testAsset) 130var buildCommand = new BuildCommand(testAsset)
GivenThatWeWantAllResourcesInSatellite.cs (1)
73TestCommand command;
GivenThatWeWantToBuildASelfContainedApp.cs (1)
217var buildCommand = new BuildCommand(testAsset)
ReferenceExeTests.cs (1)
120TestCommand buildOrPublishCommand;
RoslynBuildTaskTests.cs (9)
29var buildCommand = BuildAndRunUsingMSBuild(testAsset); 40var buildCommand = BuildAndRunUsingMSBuild(testAsset); 52var buildCommand = BuildAndRunUsingMSBuild(testAsset); 60var buildCommand = BuildAndRunUsingMSBuild(testAsset); 68var buildCommand = BuildAndRunUsingDotNet(testAsset); 77var buildCommand = BuildAndRunUsingDotNet(testAsset); 132private TestCommand BuildAndRunUsingMSBuild(TestAsset testAsset) 143private TestCommand BuildAndRunUsingDotNet(TestAsset testAsset) 160private static void VerifyCompiler(TestCommand buildCommand, string compilerFileName, bool usedCompilerServer, bool toolsetPackage = false)
Microsoft.NET.Publish.Tests (3)
GivenThatWeWantToPublishAHelloWorldProject.cs (2)
338TestCommand runCommand; 1152TestCommand runCommand = new RunExeCommand(Log, Path.Combine(publishDirectory, $"{testProject.Name}{Constants.ExeSuffix}"));
GivenThatWeWantToPublishAProjectWithDependencies.cs (1)
44TestCommand runAppCommand = new DotnetCommand(Log, appPath, "one", "two");
Microsoft.NET.TestFramework (8)
AspNetSdkTest.cs (1)
134protected virtual CommandResult ExecuteCommand(TestCommand command, params string[] arguments)
Commands\TestCommand.cs (7)
38public TestCommand WithEnvironmentVariable(string name, string value) 44public TestCommand WithWorkingDirectory(string workingDirectory) 50public TestCommand WithStandardInput(string stdin) 62public TestCommand WithStandardOutputEncoding(Encoding encoding) 72public TestCommand WithRawArguments() 78public TestCommand WithCulture(string locale) => WithEnvironmentVariable(UILanguageOverride.DOTNET_CLI_UI_LANGUAGE, locale); 80public TestCommand WithTraceOutput()
Microsoft.NET.ToolPack.Tests (1)
GivenThatWeWantToPackAToolProjectWithPackagedShim.cs (1)
261var buildCommand = new BuildCommand(testAsset).WithWorkingDirectory(testAsset.Path);