For a long time, unit testing non-public methods in C# has been a pain in the back side. In order to test a non-public method (most likely…
You should already know that in C# all types derive from System.Object and that C# supports both reference types (which are allocated onto the heap) as well as value types (primitives, enum, struct, etc. which are allocated onto the stack).