public void UrlModifierModifyIsCalled()
        {
            UrlGenerator.CreateBundleUrl(StubScriptBundle("~/test"));
            var expectedUrl = "cassette.axd/script/" + expectedHash + "/test";

            UrlModifier.Verify(m => m.Modify(expectedUrl));
        }
        public void UrlModifierModifyIsCalled()
        {
            asset.SetupGet(a => a.Path).Returns("~/test/asset.coffee");

            UrlGenerator.CreateAssetUrl(asset.Object);

            UrlModifier.Verify(m => m.Modify(It.IsAny <string>()));
        }
Ejemplo n.º 3
0
        public void UrlModifierModifyIsCalled()
        {
            var asset = new Mock <IAsset>();

            asset.SetupGet(a => a.SourceFile.FullPath).Returns("~/test/asset.coffee");
            asset.SetupGet(a => a.Hash).Returns(new byte[0]);

            UrlGenerator.CreateAssetUrl(asset.Object);

            UrlModifier.Verify(m => m.Modify(It.IsAny <string>()));
        }
 public void ItCallsUrlModifier()
 {
     UrlModifier.Setup(m => m.Modify("test.png")).Returns("/app/test.png");
     UrlGenerator.CreateAbsolutePathUrl("~/test.png").ShouldEqual("/app/test.png");
 }
Ejemplo n.º 5
0
 public void UrlModifierModifyIsCalled()
 {
     UrlGenerator.CreateBundleUrl(StubScriptBundle("~/test"));
     UrlModifier.Verify(m => m.Modify("_cassette/scriptbundle/test_010203"));
 }