Skip to content

Instantly share code, notes, and snippets.

@mstfymrtc
Created June 27, 2021 21:52
Show Gist options
  • Save mstfymrtc/0ceb494a8c675fb5f19cbfe098277d32 to your computer and use it in GitHub Desktop.
Save mstfymrtc/0ceb494a8c675fb5f19cbfe098277d32 to your computer and use it in GitHub Desktop.
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