System.NullReferenceException: 'Object reference not set to an instance of an object.' System.Web.HttpContext.Current.get returned null.
//Arrange GCopaDimensionsController gCopaDimensionsController = new GCopaDimensionsController(); //gCopaDimensionsController.ControllerContext = context.Object; //Act ViewResult result = gCopaDimensionsController.Index() as ViewResult; //Assert Assert.AreEqual("Manage Global Copa Dimension", gCopaDimensionsController.Session["Title"]); //Assert.Fail();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)