mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-11-17 06:11:06 +01:00
Updated Using WireMock in UnitTests (markdown)
1 parent
14e3295b53
commit
d848d77d2f
1 file changed
+1
-1
@@ -1,6 +1,6 @@
|
||||
# WireMock with your favorite UnitTest framework
|
||||
Obviously you can use your favorite test framework and use WireMock.Net within your tests. In order to avoid flaky tests you should:
|
||||
- let WireMock.Net choose ports dynamically. Avoid hard coded ports in your tests.
|
||||
- let WireMock.Net choose ports dynamically. Avoid hard coded ports in your tests. This can cause issues when running these unit-tests on a build-server, there is not 100% guarantee that this port will be free on the OS.
|
||||
- clean up the request log or shutdown the server at the end of each test
|
||||
|
||||
Below a simple example using Nunit and NFluent test assertion library:
|
||||
|
||||
Reference in new issue
Block a user