PageRenderTime 23ms CodeModel.GetById 12ms app.highlight 6ms RepoModel.GetById 1ms app.codeStats 0ms

/dev_tools/resharper/templates/file_templates_developwithpassion_specifications_moq.xml

http://github.com/sajagiffin/dotnet_bootcamp_setup
XML | 57 lines | 57 code | 0 blank | 0 comment | 0 complexity | 160f17f1b2462f64b5058f26075ac99f MD5 | raw file
 1<TemplatesExport>
 2  <Template uid="cc48a0c6-82d1-46d3-a4b3-93807b6b2f08" shortcut="" description="ObservationsWithContract" text=" using Machine.Specifications;&#xD;&#xA; using developwithpassion.specifications.moq;&#xD;&#xA; using developwithpassion.specifications.extensions;&#xD;&#xA; using Arg = Moq.It;&#xD;&#xA;&#xD;&#xA; namespace $namespace$&#xD;&#xA; {   &#xD;&#xA;    public class $filename$&#xD;&#xA;    {&#xD;&#xA;    public abstract class concern : Observes&lt;$contract_interface$,&#xD;&#xA;        $contract_implementation$&gt;&#xD;&#xA;    {&#xD;&#xA;        &#xD;&#xA;    }&#xD;&#xA;&#xD;&#xA;    [Subject(typeof($contract_implementation$))]&#xD;&#xA;    public class when_$observation_name$ : concern&#xD;&#xA;    {&#xD;&#xA;        &#xD;&#xA;        It $first_observation$ = () =&gt;        &#xD;&#xA;            $END$&#xD;&#xA;    }&#xD;&#xA;    }&#xD;&#xA;}&#xD;&#xA;" reformat="False" shortenQualifiedReferences="True">
 3    <Context>
 4      <ProjectLanguageContext language="CSharp" />
 5    </Context>
 6    <Categories />
 7    <Variables>
 8      <Variable name="namespace" expression="fileDefaultNamespace()" initialRange="-1" />
 9      <Variable name="filename" expression="getFileNameWithoutExtension()" initialRange="-1" />
10      <Variable name="contract_interface" expression="" initialRange="0" />
11      <Variable name="contract_implementation" expression="" initialRange="0" />
12      <Variable name="observation_name" expression="" initialRange="0" />
13      <Variable name="first_observation" expression="" initialRange="0" />
14    </Variables>
15    <CustomProperties>
16      <Property key="FileName" value="Class" />
17      <Property key="Extension" value="cs" />
18      <Property key="ValidateFileName" value="False" />
19    </CustomProperties>
20  </Template>
21  <Template uid="46080921-ca29-4e93-b240-bf6f99c62cfd" shortcut="" description="ObservationsWithoutContract" text=" using Machine.Specifications;&#xD;&#xA; using developwithpassion.specifications.moq;&#xD;&#xA; using developwithpassion.specifications.extensions;&#xD;&#xA; using Arg = Moq.It;&#xD;&#xA;&#xD;&#xA; namespace $namespace$&#xD;&#xA; {   &#xD;&#xA;    public class $filename$&#xD;&#xA;    {&#xD;&#xA;    public abstract class concern : Observes&lt;$contract_implementation$&gt;&#xD;&#xA;    {&#xD;&#xA;        &#xD;&#xA;    }&#xD;&#xA;&#xD;&#xA;    [Subject(typeof($contract_implementation$))]&#xD;&#xA;    public class when_$observation_name$ : concern&#xD;&#xA;    {&#xD;&#xA;        It $first_observation$ = () =&gt;        &#xD;&#xA;            $END$&#xD;&#xA;    }&#xD;&#xA;    }&#xD;&#xA;}&#xD;&#xA;" reformat="False" shortenQualifiedReferences="True">
22    <Context>
23      <ProjectLanguageContext language="CSharp" />
24    </Context>
25    <Categories />
26    <Variables>
27      <Variable name="namespace" expression="fileDefaultNamespace()" initialRange="-1" />
28      <Variable name="filename" expression="getFileNameWithoutExtension()" initialRange="-1" />
29      <Variable name="observation_name" expression="" initialRange="0" />
30      <Variable name="contract_implementation" expression="" initialRange="0" />
31      <Variable name="first_observation" expression="" initialRange="0" />
32    </Variables>
33    <CustomProperties>
34      <Property key="FileName" value="Class" />
35      <Property key="Extension" value="cs" />
36      <Property key="ValidateFileName" value="False" />
37    </CustomProperties>
38  </Template>
39  <Template uid="49a266eb-771d-4d5b-aab7-3fa64c3fe603" shortcut="" description="StaticObservations" text="using Machine.Specifications;&#xD;&#xA;using developwithpassion.specifications.moq;&#xD;&#xA;using developwithpassion.specifications.extensions;&#xD;&#xA;using Arg = Moq.It;&#xD;&#xA;&#xD;&#xA; namespace $namespace$&#xD;&#xA; {   &#xD;&#xA;    public class $filename$&#xD;&#xA;    {&#xD;&#xA;      public abstract class concern : Observes&#xD;&#xA;      {&#xD;&#xA;          &#xD;&#xA;      }&#xD;&#xA;&#xD;&#xA;      [Subject(typeof($sut$))]&#xD;&#xA;      public class when_$observation_name$ : concern&#xD;&#xA;      {        &#xD;&#xA;          It $first_observation$ = () =&gt;        &#xD;&#xA;              $END$&#xD;&#xA;      }&#xD;&#xA;    }&#xD;&#xA;}&#xD;&#xA;" reformat="True" shortenQualifiedReferences="True">
40    <Context>
41      <ProjectLanguageContext language="CSharp" />
42    </Context>
43    <Categories />
44    <Variables>
45      <Variable name="namespace" expression="fileDefaultNamespace()" initialRange="-1" />
46      <Variable name="filename" expression="getFileNameWithoutExtension()" initialRange="-1" />
47      <Variable name="sut" expression="" initialRange="0" />
48      <Variable name="observation_name" expression="" initialRange="0" />
49      <Variable name="first_observation" expression="" initialRange="0" />
50    </Variables>
51    <CustomProperties>
52      <Property key="FileName" value="Class" />
53      <Property key="Extension" value="cs" />
54      <Property key="ValidateFileName" value="False" />
55    </CustomProperties>
56  </Template>
57</TemplatesExport>