Hi everybody,
I introduced internal enum in my class. I have a method that returns value of that enum. I want to be able to test that method in a test project which is part of my solution.
I added the following line to my class code at the very top
[assembly: InternalsVisibleTo("TestProject")]
As a result I am able to see the methods of the class, but I am unable to declare a variable of the type my enum.
Other than making that enum public is there another solution?
Thanks in advance.
If it's not broken, fix it until it is.
My Blog