You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
Public methods are not virtual so some mocking frameworks are unable to easily
mock the Markdown class for unit testing.
What is the expected output? What do you see instead?
N/A
What version of the product are you using? On what operating system?
1.12, Windows
Please provide any additional information below.
Using Visual Studio refactoring tools, simply use Create Interface. This will
create an IMarkdown (by default) interface and set the class to implement it.
Users can then mock this interface for unit tests, supplying an instance of the
class for production code.
Original issue reported on code.google.com by tvanfos...@gmail.com on 10 Jun 2010 at 6:19
The text was updated successfully, but these errors were encountered:
The point is that I would like to mock out the Markdown class in my code. Most
mocking frameworks require that you mock an interface or that the class have
virtual methods. Adding an interface, which the Markdown class implements,
makes it trivial to mock it in my code.
Original comment by tvanfos...@gmail.com on 6 Jul 2010 at 1:31
Original issue reported on code.google.com by
tvanfos...@gmail.com
on 10 Jun 2010 at 6:19The text was updated successfully, but these errors were encountered: