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 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())); }