Skip to content

shibayan/iisexpress-testkit

Repository files navigation

IIS Express TestKit

Build status License NuGet Version

Getting Started

  • 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 :)

Test Result

  • Running AppVeyor CI

AppVeyor

License

Apache License 2.0

Releases

No releases published

Packages

No packages published