Skip to content

Instantly share code, notes, and snippets.

@codingfab
Last active December 3, 2019 17:10
Show Gist options
  • Save codingfab/a1411f76ce33bdf3a3870f7a208c5aa2 to your computer and use it in GitHub Desktop.
Save codingfab/a1411f76ce33bdf3a3870f7a208c5aa2 to your computer and use it in GitHub Desktop.
Starting point
[TestFixture]
public class MyComplexLogicShould
{
[Test]
public void ReturnExpectedResult()
{
// Arrange
var a = 10;
var b = 22;
var expected = 32;
var sut = new MyClass();
// Act
var result = sut.MyComplexLogic(a,b);
// Assert
Assert.That(result,Is.EqualTo(expected));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment