public void should_return_formatted_link_variable_of_new_model() { _page.LinkVariable <InputModel>("variable").ShouldEqual("var {0} = '{1}';".ToFormat("variable", "some url")); _urls.AssertWasNotCalled(u => u.UrlFor(_model)); _page.VerifyAllExpectations(); _urls.AssertWasCalled(u => u.UrlFor(Arg <InputModel> .Is.NotNull)); }