I am trying to set the controller.Url property, but this test fails.
I wrote this test because I could not test a controller action due to controller.Url being null.
[TestMethod]
public void AccountController_Url_ShouldNotBeNull()
{
var target = new AccountController();
var url = new UrlHelper(
this.RequestContext(this.GetFakeHttpContextBase),
new RouteCollection());
target.Url = url;
target.Url.Should().NotBeNull();
}
I am using FakeItEasy to mock my HttpContextBase, etc. Any ideas?