Add the ability to unit test rewrite rules fully in C#