0
//Claim class Developed in solution ABC
class Claim
{
public Claim(string s)
{
// progreamm.....
}
}
//Test Case needs to write in Solution XYZ
[TestClass]
public class ClaimTest
{
public void myconstructor()
{
//Now Question is how to access class Claim here?
}
}
//Now Question is how to access class Claim constructor in myconstructor //function.
//Hope you get what i need to access using Just Mock in telerik
你不应该需要单元测试内部类;只有公共API。如果您无法通过使用它的公共类正确地测试'Claim',那么您的代码设计存在问题。 –