Should all major types be interfaces? #85
Replies: 3 comments 1 reply
-
I guess it depends on whether people need to do mocking and testing of these methods. My experience is that unless you have different implementation classes, or a fixed/simple interface that really really isn't going to change, interfaces just add a lot of work to maintain for very little gain. |
Beta Was this translation helpful? Give feedback.
-
@madskristensen I've already noted that I have changes to the messagebox code coming as soon as I can as health permits. |
Beta Was this translation helpful? Give feedback.
-
I think it's absolutely worth doing. In fact, I would say we need to do it if we want to make testing of extensions easier. I've been playing with some ideas for testing helpers and I hope to have a prototype up and running in the next few days. One of the key parts to the whole idea is having the |
Beta Was this translation helpful? Give feedback.
-
Types such as
VS.MessageBox
andVS.Solution
return classes, but should they return an interface instead? That would make mocking and testing easier. It adds more weight and files to the toolkit, so do you think it's worth doing?Beta Was this translation helpful? Give feedback.
All reactions