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',那麼您的代碼設計存在問題。 –