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,32)] | |
public void ReturnExpectedResult(int a, int b, int expected) | |
{ | |
// Arrange | |
var sut = new MyClass(); |
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] | |
public void ReturnExpectedResult() | |
{ | |
// Arrange | |
var a = 10; | |
var b = 22; | |
var expected = 32; |
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)] | |
public int ReturnExpectedResult(int a, int b) | |
{ | |
var sut = new MyClass(); | |
return sut.MyComplexLogic(a,b); |
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(); |
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] | |
[TestCaseSource(nameof(GetTestCases))] | |
public int ReturnExpectedResult(int a, int b) | |
{ | |
var sut = new MyClass(); | |
return sut.MyComplexLogic(a,b); |
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] | |
[TestCaseSource(typeof(MyTestCases),"TestData")] | |
public int ReturnExpectedResult(int a, int b) | |
{ | |
var sut = new MyClass(); | |
return sut.MyComplexLogic(a,b); |