Skip to content

Commit e69216d

Browse files
committed
Address review feedback
1 parent 408244a commit e69216d

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/Mvc/Mvc.Testing/src/Resources.resx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,10 @@
127127
<value>Can't find '{0}'. This file is required for functional tests to run properly. There should be a copy of the file on your source project bin folder. If that is not the case, make sure that the property PreserveCompilationContext is set to true on your project file. E.g '&lt;PreserveCompilationContext&gt;true&lt;/PreserveCompilationContext&gt;'. For functional tests to work they need to either run from the build output folder or the {1} file from your application's output directory must be copied to the folder where the tests are running on. A common cause for this error is having shadow copying enabled when the tests run.</value>
128128
</data>
129129
<data name="ServerNotInitialized" xml:space="preserve">
130-
<value>Server hasn't been initialized yet. Plase intialized the server first before trying to create a client.</value>
130+
<value>Server hasn't been initialized yet. Please initialize the server first before trying to create a client.</value>
131+
</data>
132+
<data name="TestServerNotSupportedWhenUsingKestrel" xml:space="preserve">
133+
<value>Accessing the `Server` property isn't supported when using Kestrel server.</value>
131134
</data>
132135
<data name="UseKestrelCanBeCalledBeforeInitialization" xml:space="preserve">
133136
<value>UseKestrel should be called before server initialization. Calling UseKestrel after the server was initialized will have no effect.</value>

src/Mvc/Mvc.Testing/src/WebApplicationFactory.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public TestServer Server
8585
{
8686
if (_useKestrel)
8787
{
88-
throw new NotSupportedException();
88+
throw new NotSupportedException(Resources.TestServerNotSupportedWhenUsingKestrel);
8989
}
9090

9191
StartServer();

0 commit comments

Comments
 (0)