65 references to AssertOutputContains
dotnet-watch.Tests (65)
CommandLine\ProgramTests.cs (17)
205
App.
AssertOutputContains
("The following Tests are available:");
206
App.
AssertOutputContains
(" TestNamespace.VSTestXunitTests.VSTestXunitPassTest");
216
App.
AssertOutputContains
("The following Tests are available:");
217
App.
AssertOutputContains
(" TestNamespace.VSTestXunitTests.VSTestXunitPassTest2");
245
App.
AssertOutputContains
("dotnet watch ⌚ Command 'build' does not support Hot Reload.");
246
App.
AssertOutputContains
("warning : The value of property is '123'");
262
App.
AssertOutputContains
("dotnet watch ⌚ Command 'msbuild' does not support Hot Reload.");
263
App.
AssertOutputContains
("warning : The value of property is '123'");
281
App.
AssertOutputContains
("dotnet watch ⌚ Command 'pack' does not support Hot Reload.");
282
App.
AssertOutputContains
($"Successfully created package '{packagePath}'");
298
App.
AssertOutputContains
("dotnet watch ⌚ Command 'publish' does not support Hot Reload.");
300
App.
AssertOutputContains
(Path.Combine("Release", ToolsetInfo.CurrentTargetFramework, "publish"));
314
App.
AssertOutputContains
("dotnet watch ⌚ Command 'format' does not support Hot Reload.");
316
App.
AssertOutputContains
("format --verbosity detailed");
317
App.
AssertOutputContains
("Format complete in");
342
App.
AssertOutputContains
(@"dotnet watch 🔨 Failed to load project graph.");
343
App.
AssertOutputContains
($"dotnet watch ❌ The project file could not be loaded. Could not find a part of the path '{Path.Combine(testAsset.Path, "AppWithDeps", "NonExistentDirectory", "X.csproj")}'");
HotReload\ApplyDeltaTests.cs (48)
149
App.
AssertOutputContains
("dotnet watch ⌚ [auto-restart] error ENC1102: Changing project setting 'DefineConstants'");
299
App.
AssertOutputContains
($"dotnet watch ⌚ Excluded directory: '{binDir}'");
300
App.
AssertOutputContains
($"dotnet watch ⌚ Excluded directory: '{objDir}'");
432
App.
AssertOutputContains
($"⌚ [auto-restart] {programPath}(38,11): error ENC0023: Adding an abstract method or overriding an inherited method requires restarting the application.");
433
App.
AssertOutputContains
($"[WatchHotReloadApp ({ToolsetInfo.CurrentTargetFramework})] Exited");
434
App.
AssertOutputContains
($"[WatchHotReloadApp ({ToolsetInfo.CurrentTargetFramework})] Launched");
462
App.
AssertOutputContains
($"❌ {programPath}(38,11): error ENC0023: Adding an abstract method or overriding an inherited method requires restarting the application.");
469
App.
AssertOutputContains
($"[WatchHotReloadApp ({ToolsetInfo.CurrentTargetFramework})] Exited");
470
App.
AssertOutputContains
($"[WatchHotReloadApp ({ToolsetInfo.CurrentTargetFramework})] Launched");
479
App.
AssertOutputContains
($"⌚ [auto-restart] {programPath}(38,1): error ENC0033: Deleting method 'F()' requires restarting the application.");
480
App.
AssertOutputContains
($"[WatchHotReloadApp ({ToolsetInfo.CurrentTargetFramework})] Exited");
481
App.
AssertOutputContains
($"[WatchHotReloadApp ({ToolsetInfo.CurrentTargetFramework})] Launched");
517
App.
AssertOutputContains
($"⌚ [auto-restart] {programPath}(16,19): warning ENC0118: Changing 'top-level code' might not have any effect until the application is restarted.");
518
App.
AssertOutputContains
($"[WatchHotReloadApp ({ToolsetInfo.CurrentTargetFramework})] Exited");
519
App.
AssertOutputContains
($"[WatchHotReloadApp ({ToolsetInfo.CurrentTargetFramework})] Launched");
520
App.
AssertOutputContains
("<Updated>");
783
App.
AssertOutputContains
("dbug: Microsoft.AspNetCore.Watch.BrowserRefresh.BlazorWasmHotReloadMiddleware[0]");
784
App.
AssertOutputContains
("dbug: Microsoft.AspNetCore.Watch.BrowserRefresh.BrowserScriptMiddleware[0]");
785
App.
AssertOutputContains
("Middleware loaded. Script /_framework/aspnetcore-browser-refresh.js");
786
App.
AssertOutputContains
("Middleware loaded. Script /_framework/blazor-hotreload.js");
787
App.
AssertOutputContains
("dbug: Microsoft.AspNetCore.Watch.BrowserRefresh.BrowserRefreshMiddleware");
788
App.
AssertOutputContains
("Middleware loaded: DOTNET_MODIFIABLE_ASSEMBLIES=debug, __ASPNETCORE_BROWSER_TOOLS=true");
804
App.
AssertOutputContains
("dotnet watch 🔥 Hot reload capabilities: Baseline AddMethodToExistingType.");
808
App.
AssertOutputContains
("dotnet watch 🔥 Hot reload capabilities: Baseline AddMethodToExistingType AddStaticFieldToExistingType NewTypeDefinition ChangeCustomAttributes AddInstanceFieldToExistingType GenericAddMethodToExistingType GenericUpdateMethod UpdateParameters GenericAddFieldToExistingType.");
875
App.
AssertOutputContains
($"dotnet watch ⌚ [blazorhosted ({tfm})] Project 'blazorwasm ({tfm})' specifies capabilities: 'Baseline AddMethodToExistingType AddStaticFieldToExistingType NewTypeDefinition ChangeCustomAttributes AddInstanceFieldToExistingType GenericAddMethodToExistingType GenericUpdateMethod UpdateParameters GenericAddFieldToExistingType'");
878
App.
AssertOutputContains
($"dotnet watch ⌚ [blazorhosted ({tfm})] Capabilities: 'Baseline AddMethodToExistingType AddStaticFieldToExistingType AddInstanceFieldToExistingType NewTypeDefinition ChangeCustomAttributes UpdateParameters GenericUpdateMethod GenericAddMethodToExistingType GenericAddFieldToExistingType AddFieldRva'");
894
App.
AssertOutputContains
($"dotnet watch ⌚ Launching browser: http://localhost:{port}");
908
App.
AssertOutputContains
(MessageDescriptor.SendingStaticAssetUpdateRequest.GetMessage("RazorApp.css"));
919
App.
AssertOutputContains
(MessageDescriptor.SendingStaticAssetUpdateRequest.GetMessage("wwwroot/app.css"));
956
App.
AssertOutputContains
("Updates applied: 1 out of 1.");
957
App.
AssertOutputContains
("Microsoft.AspNetCore.Components.HotReload.HotReloadManager.UpdateApplication");
965
App.
AssertOutputContains
("Updates applied: 1 out of 1.");
966
App.
AssertOutputContains
("Microsoft.AspNetCore.Components.WebView.StaticContentHotReloadManager.UpdateContent");
967
App.
AssertOutputContains
("No C# changes to apply.");
1151
App.
AssertOutputContains
("Using Aspire process launcher.");
1168
App.
AssertOutputContains
($"dotnet watch ❌ {serviceSourcePath}(40,1): error ENC0020: Renaming record 'WeatherForecast' requires restarting the application.");
1169
App.
AssertOutputContains
("dotnet watch ⌚ Affected projects:");
1170
App.
AssertOutputContains
("dotnet watch ⌚ WatchAspire.ApiService");
1177
App.
AssertOutputContains
("Application is shutting down...");
1180
App.
AssertOutputContains
($"[WatchAspire.ApiService ({tfm})] Exited");
1183
App.
AssertOutputContains
(MessageDescriptor.Building.GetMessage(serviceProjectPath));
1184
App.
AssertOutputContains
("error CS0246: The type or namespace name 'WeatherForecast' could not be found");
1194
App.
AssertOutputContains
(MessageDescriptor.BuildSucceeded.GetMessage(serviceProjectPath));
1196
App.
AssertOutputContains
($"dotnet watch ⭐ Starting project: {serviceProjectPath}");
1209
App.
AssertOutputContains
("dotnet watch ⭐ Stop session #1");
1210
App.
AssertOutputContains
("dotnet watch ⭐ [#1] Sending 'sessionTerminated'");
1238
App.
AssertOutputContains
(MessageDescriptor.ProjectsRestarted.GetMessage(1));
1247
App.
AssertOutputContains
($"dotnet watch 🕵️ [WatchAspire.Web ({tfm})] Updates applied.");