Created
June 27, 2021 21:52
-
-
Save mstfymrtc/0ceb494a8c675fb5f19cbfe098277d32 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
using NUnit.Framework; | |
namespace Example.Tests | |
{ | |
public class Tests | |
{ | |
[Test] | |
public void Sum_GivenSecondArgumantAsZero_ShouldCalculateProperly() | |
{ | |
var actual = Utilities.Sum(1,0); | |
var expected = 1; | |
Assert.AreEqual(expected,actual); | |
} | |
[Test] | |
public void Sum_GivenOnePlusTwo_ShouldCalculateProperly() | |
{ | |
var actual = Utilities.Sum(1,2); | |
var expected = 3; | |
Assert.AreEqual(expected,actual); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment