public void CreateAssetCompileUrlReturnsCompileUrl() { var module = new Module("~/test"); var asset = new Mock<IAsset>(); asset.SetupGet(a => a.SourceFilename).Returns("~/test/asset.coffee"); asset.SetupGet(a => a.Hash).Returns(new byte[] { 1, 2, 15, 16 }); var app = new UrlGenerator("/"); var url = app.CreateAssetCompileUrl(module, asset.Object); url.ShouldEqual("/_assets/get/test/asset.coffee?01020f10"); }