public void GetPath_ViewContext_Path() { var page = new StubPage1(); page.ViewContext = new ViewContext() { View = new RazorView(new ControllerContext(), "path/view.cshtml", "", false, new string[0]) }; Assert.AreEqual("path/view.cshtml", page.GetPath()); }
public void GetPath_ViewContextNull_Exception() { var page = new StubPage1(); Assert.IsNotNull(page.GetPath()); }