/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
- <TemplatesExport>
- <Template uid="cc48a0c6-82d1-46d3-a4b3-93807b6b2f08" shortcut="" description="ObservationsWithContract" text=" using Machine.Specifications;
 using developwithpassion.specifications.moq;
 using developwithpassion.specifications.extensions;
 using Arg = Moq.It;

 namespace $namespace$
 { 
 public class $filename$
 {
 public abstract class concern : Observes<$contract_interface$,
 $contract_implementation$>
 {
 
 }

 [Subject(typeof($contract_implementation$))]
 public class when_$observation_name$ : concern
 {
 
 It $first_observation$ = () => 
 $END$
 }
 }
}
" reformat="False" shortenQualifiedReferences="True">
- <Context>
- <ProjectLanguageContext language="CSharp" />
- </Context>
- <Categories />
- <Variables>
- <Variable name="namespace" expression="fileDefaultNamespace()" initialRange="-1" />
- <Variable name="filename" expression="getFileNameWithoutExtension()" initialRange="-1" />
- <Variable name="contract_interface" expression="" initialRange="0" />
- <Variable name="contract_implementation" expression="" initialRange="0" />
- <Variable name="observation_name" expression="" initialRange="0" />
- <Variable name="first_observation" expression="" initialRange="0" />
- </Variables>
- <CustomProperties>
- <Property key="FileName" value="Class" />
- <Property key="Extension" value="cs" />
- <Property key="ValidateFileName" value="False" />
- </CustomProperties>
- </Template>
- <Template uid="46080921-ca29-4e93-b240-bf6f99c62cfd" shortcut="" description="ObservationsWithoutContract" text=" using Machine.Specifications;
 using developwithpassion.specifications.moq;
 using developwithpassion.specifications.extensions;
 using Arg = Moq.It;

 namespace $namespace$
 { 
 public class $filename$
 {
 public abstract class concern : Observes<$contract_implementation$>
 {
 
 }

 [Subject(typeof($contract_implementation$))]
 public class when_$observation_name$ : concern
 {
 It $first_observation$ = () => 
 $END$
 }
 }
}
" reformat="False" shortenQualifiedReferences="True">
- <Context>
- <ProjectLanguageContext language="CSharp" />
- </Context>
- <Categories />
- <Variables>
- <Variable name="namespace" expression="fileDefaultNamespace()" initialRange="-1" />
- <Variable name="filename" expression="getFileNameWithoutExtension()" initialRange="-1" />
- <Variable name="observation_name" expression="" initialRange="0" />
- <Variable name="contract_implementation" expression="" initialRange="0" />
- <Variable name="first_observation" expression="" initialRange="0" />
- </Variables>
- <CustomProperties>
- <Property key="FileName" value="Class" />
- <Property key="Extension" value="cs" />
- <Property key="ValidateFileName" value="False" />
- </CustomProperties>
- </Template>
- <Template uid="49a266eb-771d-4d5b-aab7-3fa64c3fe603" shortcut="" description="StaticObservations" text="using Machine.Specifications;
using developwithpassion.specifications.moq;
using developwithpassion.specifications.extensions;
using Arg = Moq.It;

 namespace $namespace$
 { 
 public class $filename$
 {
 public abstract class concern : Observes
 {
 
 }

 [Subject(typeof($sut$))]
 public class when_$observation_name$ : concern
 { 
 It $first_observation$ = () => 
 $END$
 }
 }
}
" reformat="True" shortenQualifiedReferences="True">
- <Context>
- <ProjectLanguageContext language="CSharp" />
- </Context>
- <Categories />
- <Variables>
- <Variable name="namespace" expression="fileDefaultNamespace()" initialRange="-1" />
- <Variable name="filename" expression="getFileNameWithoutExtension()" initialRange="-1" />
- <Variable name="sut" expression="" initialRange="0" />
- <Variable name="observation_name" expression="" initialRange="0" />
- <Variable name="first_observation" expression="" initialRange="0" />
- </Variables>
- <CustomProperties>
- <Property key="FileName" value="Class" />
- <Property key="Extension" value="cs" />
- <Property key="ValidateFileName" value="False" />
- </CustomProperties>
- </Template>
- </TemplatesExport>