Skip to content

Instantly share code, notes, and snippets.

@royosherove
Created March 4, 2013 10:56
Show Gist options
  • Save royosherove/5081517 to your computer and use it in GitHub Desktop.
Save royosherove/5081517 to your computer and use it in GitHub Desktop.
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