Currently I wanted to do a UT coverage for which 100% function coverage is needed. I have a Public Class called FunctionParser.cs in my application and this internally uses an internal class called Autocomplete provided by Third party. Now the problem is there are few functionalities that lie within the AutoComplete Class which are untested . Therefore in order to do the coverage for this internal class named "AutoComplete" am trying to use reflection but nothing works for me can some one say me how can I use reflection to access this internal class for test purpose.
Note : I cannot modify the AutoComplete.CS which is an internal class provided by 3rd party, so other than using •Get [InternalsVisibleTo] . please suggest anything else that could work without modifying the third party class