Esempio n. 1
0
        public void image_url()
        {
            var page = MockRepository.GenerateMock<IFubuPage>();
            var urls = new StubUrlRegistry();
            page.Stub(x => x.Urls).Return(urls);

            page.ImageUrl("some icon name")
                .ShouldEqual(urls.UrlForAsset(AssetFolder.images, "some icon name"));
        }
Esempio n. 2
0
        public void image_url()
        {
            var page = MockRepository.GenerateMock <IFubuPage>();
            var urls = new StubUrlRegistry();

            page.Stub(x => x.Urls).Return(urls);

            page.ImageUrl("some icon name")
            .ShouldEqual(urls.UrlForAsset(AssetFolder.images, "some icon name"));
        }
 public void will_resolve_the_asset_url_for_the_icon_if_it_exists()
 {
     theToken.IconUrl.ShouldEqual(theUrls.UrlForAsset(AssetFolder.images, theNode.Icon()));
 }