Created
January 7, 2019 21:38
-
-
Save alefcarlos/64dacfe649f72cb473e7899501f683e4 to your computer and use it in GitHub Desktop.
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
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