How to test internal class library?
I would like to write a class library which creates for me a complex object but should only be exposed as little as possible. I want it to be included into other projects and there I only have one call to this library which e.g. returns me an object of a internally created class. I don't want to allow others to create these objects explicitly, but still I want to create a test project for this class library. For example: var result = Manager.Instance.Create(definition) This should be the only access to the class library. Based on the definition parameter it uses different sub classes to create