[TestMethod] [HostType("ASP.NET")] [UrlToTest("https://login.live.com/login.srf?wa=wsignin1.0&rpsnv=11&ct=1311328495&rver=6.1.6206.0&wp=MCMBI&wreply=https:%2F%2Fmcp.microsoft.com%2FAuthenticate%2FMigrate%2FMigrate.aspx%3FReturnUrl%3Dhttps:%2F%2Fmcp.microsoft.com%2Fmcp%2Fdefault.mspx&lc=1033&cb=wizid%3Ddf57638e-b739-4667-8316-25dc173aef4b%26returnurl%3Dhttps%253a%252f%252fmcp.microsoft.com%252fAuthenticate%252fMigrate%252fMigrate.aspx%253fReturnUrl%253dhttps%253a%252f%252fmcp.microsoft.com%252fmcp%252fdefault.mspx%26wp%3DMCMBI%26lcid%3D1033&id=74335")] public void LoginCheck() { Page page = testContextInstance.RequestedPage; PrivateObject po = new PrivateObject(page); TextBox txt1 = (TextBox)page.FindControl("login"); po.Invoke("Page_Load", page, EventArgs.Empty); Assert.AreEqual(txt1.Text, "", true); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)