Created
March 4, 2013 10:56
-
-
Save royosherove/5081517 to your computer and use it in GitHub Desktop.
This file contains 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
Calculator calculator; | |
[SetUp] | |
public void Setup() | |
{ | |
calculator = new Calculator(); | |
} | |
[Test] | |
public void SomeTest() | |
{ | |
int result = calculator.something(1,2); | |
} | |
public void SetMakeDefaultCalc() | |
{ | |
return new Calculator(); | |
} | |
[Test] | |
public void SomeTest() | |
{ | |
Calculator calc = MakeDefaultCalc(); | |
int result = calc.something(1,2); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment