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