Skip to content

Instantly share code, notes, and snippets.

@alefcarlos
Created January 7, 2019 21:38
Show Gist options
  • Save alefcarlos/64dacfe649f72cb473e7899501f683e4 to your computer and use it in GitHub Desktop.
Save alefcarlos/64dacfe649f72cb473e7899501f683e4 to your computer and use it in GitHub Desktop.
using Shouldly;
using Xunit;
namespace Problems.Tests
{
public class HelpersTess
{
[Fact]
public void Sum_ShouldBeSuccess()
{
Helpers.Sum(1, 2).ShouldBe(3);
}
[Theory]
[InlineData(1, 2, 3)]
[InlineData(5, 5, 10)]
[InlineData(13, 7, 20)]
public void SumTheory_ShouldBeSuccess(int number1, int number2, int expectedResult)
{
Helpers.Sum(number1, number2).ShouldBe(expectedResult);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment