This project is read-only.

Allow easier mocking by implementing interfaces for Roslyn classes (eg. Document)

Topics: APIs, General
Jul 16, 2014 at 7:42 AM
As of now, a Document object is not mockable with traditional mocking frameworks, which typically rely on interfaces. It would be great, in order to allow extension developers to test and mock their code, to have every public class implement an interface, and code against it.

Right now, developers which want to unit test their extensions thoroughly need to write wrappers, which in turn will implement an interface.

it is a big and useless overhead, and everybody could benefit from that approach.