Skip to content

Latest commit

 

History

History
42 lines (30 loc) · 1.21 KB

README.md

File metadata and controls

42 lines (30 loc) · 1.21 KB

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