Last active
          November 30, 2017 18:07 
        
      - 
      
- 
        Save feanz/1ee9dc9242270521f720 to your computer and use it in GitHub Desktop. 
    BDD Style test base class for specifications, in Nunit
  
        
  
    
      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
    
  
  
    
  | public abstract class Spec | |
| { | |
| [TestFixtureSetUp] | |
| public void Setup() | |
| { | |
| SpecSetup(); | |
| Given(); | |
| When(); | |
| } | |
| public virtual void SpecSetup() | |
| { } | |
| public abstract void Given(); | |
| public abstract void When(); | |
| } | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment