-
-
Save i-e-b/2215767 to your computer and use it in GitHub Desktop.
MSpec templates for ReSharper using my MSpec wrapper
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=()=> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Subject("with $subject$")] | |
public class $subject_cls$ : /*Database*/ContextOf<object> { | |
Establish context = () => { $END$ }; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma warning disable 169 // ReSharper disable InconsistentNaming, CheckNamespace | |
using Machine.Specifications; | |
// Feature: (is the folder I'm in) | |
// Scenario: $scenario$ | |
// | |
// Given: $a_context$ | |
// When: $doing_something$ | |
// Then it: $should_do_something$ | |
namespace $scenario_u$ { | |
class When_$doing_something_u$ : with.$a_context_u$ { | |
Because of = () => { result = subject.DoSomething(); }; | |
It $should_do_something_u$ = () => result.ShouldNotBeNull(); | |
} | |
#region contexts | |
namespace with { | |
[Subject("with $a_context$")] | |
public abstract class $a_context_u$ : /*Database*/ContextAndResult</*subject type*/ object, /*result type*/ object> { | |
Establish context = () => { | |
subject = new object(); | |
}; | |
} | |
} | |
#endregion | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protected static |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment