Last active
December 1, 2019 19:51
-
-
Save codingfab/087bf16ba87d970dbda5ac5544f44066 to your computer and use it in GitHub Desktop.
Tests multiple data set with repeated TestCase attributes
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
[TestFixture] | |
public class MyComplexLogicShould | |
{ | |
[Test] | |
[TestCase(10, 22, ExpectedResult = 32)] | |
[TestCase(20, 44, ExpectedResult = 64)] | |
[TestCase(15, 17, 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