Reusing NSpec specifications
问题 I've started with NSpec recently and now I'm not sure how to scale this. What is the best way to reuse specifications ( it["something"] = () => {}; )? Let's say I have an interface IMyService and 2 classes that implement it: Service1 and Service2 . Now I want to write specifications that apply at IMyservice level, and run them against my 2 implementation classes. Maybe I'm missing something here, but I can find a simple way to do this. 回答1: You can use a abstract class to reuse the