How to set RequestedPage property in testContext in Unit Test Method?
<p>I am writing test method in VS2010 using .dotcover.I need to set the RequestedPage property of testContectInstance object.
I have used this code.
public TestContext TestContextInstance;
        public TestContext TestContext
        {
            get
            {
                return TestContextInstance;
            }
            set
            {
                TestContextInstance = value;
            }
        }
I need to get the Requested Page Object.so that i can test the Pages controls value.From TextContextInstance object i am getting RequestPage property as null.Not exactly getting why getting null value.
I have tried with following links.
<a href="http://www.codeproject.com/Articles/263464/How-to-Configure-ASP-NET-Unit-Tests-in-Visual-Stud" rel="nofollow">http://www.codeproject.com/Articles/263464/How-to-Configure-ASP-NET-Unit-Tests-in-Visual-Stud</a>
<a href="http://www.icoders.net/hello-world3/" rel="nofollow">http://www.icoders.net/hello-world3/</a>
But its not working fo<code>enter code here</code>r me.
Please suggest if you have any solution.</p>
