[TestMethod] public void UnitTestMethod1() { Test1Controller controller = new Test1Controller(); //This call throws NullReferenceException "Object reference not set to an instance of an object." WebSecurity.Login("User1", "password1"); controller.TestMethod(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)