Unit Test Notimplementedexception RRS feed

  • Question

  • We have created an interface for our repository classes having common methods. There is a scenario where a new repository created need not implemented method in an interface. We have thrown Notimplementedexception from that method in derived class. Is it worth writing Unit Test for this method? If Yes, is it better to use ExpectedException Attribute?
    Saturday, June 13, 2015 5:17 AM