Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Snippet for VS2017 to add mocking object properties faster.
<?xml version="1.0" encoding="utf-8"?>
<CodeSnippet Format="1.0.0">
<Title>Add Mock</Title>
<Description>Add mock property.</Description>
<ToolTip>Replace with a class name, that should be mocked.</ToolTip>
<Code Language="CSharp">
<![CDATA[public Mock<$MockedClass$> $MockedClass$Mock = new Mock<$MockedClass$>();]]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment