- Create new xUnit test project
- Install package from NuGet
Install-Package IisExpressTestKit
- Write test case
[Fact]
public void RewriteRulesTest()
{
Iis.Request("/hoge")
.IsPath("/translated/hoge")
.IsStatusCode(HttpStatusCode.OK);
Iis.Request("/hoge/foo/bar/baz")
.IsPath("/translated/hoge/foo/bar/baz")
.IsStatusCode(HttpStatusCode.OK);
}
- Make happy :)
- Running AppVeyor CI