Skip to content

Instantly share code, notes, and snippets.

@codingfab
Last active December 1, 2019 19:44
Show Gist options
  • Save codingfab/aebd10dba5c7daa8d18c1400f2bcd0c5 to your computer and use it in GitHub Desktop.
Save codingfab/aebd10dba5c7daa8d18c1400f2bcd0c5 to your computer and use it in GitHub Desktop.
ExpectedResult usage
[TestFixture]
public class MyComplexLogicShould
{
[Test]
[TestCase(10, 22, ExpectedResult = 32)]
public int ReturnExpectedResult(int a, int b)
{
var sut = new MyClass();
return sut.MyComplexLogic(a,b);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment