CliAppHostCommandsTests.cs (12)
28var host = Host();
47CliAppHostCommands.CreateStopStartInfo(Path.GetFullPath("aspire"), Host() with { AppHostPid = pid }));
53Assert.Throws<ArgumentException>(() => CliAppHostCommands.CreateStopStartInfo("aspire", Host()));
55CliAppHostCommands.CreateStopStartInfo(Path.GetFullPath("aspire"), Host() with { AppHostPath = "apphost.cs" }));
65Path.GetFullPath("aspire"), Host() with { ProcessStartTimeUnixMilliseconds = startedAt }));
86var host = Host();
102var task = commands.StopAsync(Host(), shutdown.Token);
138var task = commands.StopAsync(Host(), TestContext.Current.CancellationToken);
156.StopAsync(Host(), TestContext.Current.CancellationToken);
169var task = commands.StopAsync(Host(), TestContext.Current.CancellationToken);
189.StopAsync(Host(), TestContext.Current.CancellationToken);
199await Assert.ThrowsAnyAsync<OperationCanceledException>(() => commands.StopAsync(Host(), new CancellationToken(canceled: true)));