Hi please find the below example
Example class File
Public Class AAAA
{
Public AAAA()
{
BBBB ex=new BBBB(this);
Ex.show();
}
}
Public Class BBBB
{
Public BBBB()
{
--------
}
}
Testcase
Example.cs
[TestClass]
Public class unittest
{
[TestMethod]
public void GenerateReport_Module()
{
AAAA UIval=new AAAA();
Isolate.WhenCalled(() => UIval. Createval(rArgs)).WithExactArguments()
}
}
In above test case whenever I am creating AAAA class object means BBBB UI will show automatically.
So I need to hide BBBB Screen