Click here to Skip to main content
15,881,801 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have a generic class similar to following
C#
public class HelperClass<T> where T : DBTable, new()
{
}



I have to shim this class but when I compile the code, I get warning.
I have added following line in .fakes

C#
<Add FullName="A.B.HelperClass" />


When I Set diagnostics = true,
it is trying to shim classes like HelperClass'1

How can I apply filter in this scenario?
Posted
Comments
Sergey Alexandrovich Kryukov 18-Aug-14 3:32am    
Not clear what you are talking about.
—SA
OriginalGriff 18-Aug-14 4:28am    
This is not a good question - we cannot work out from that little what you are trying to do.
Remember that we can't see your screen, access your HDD, or read your mind.
And I for one don't understand what you are trying to do.
What is "shim this class"? It's not a term I've heard of.
Perhaps if you explain in simple words, or even try to explain in your native language and translate it with Google?
Use the "Improve question" widget to edit your question and provide better information.
Abdul Muneeb Abbasi 20-Aug-14 5:18am    
Do you know Stub/Shimming?

All I am asking is in .fakes assembly, how can I filter a generic class.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900