Skip to content

Commit

Permalink
Test String Sum Kata
Browse files Browse the repository at this point in the history
  • Loading branch information
garora committed Mar 14, 2021
1 parent 282e884 commit bfa01b8
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/StringSum/StringSumKata.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,17 @@

namespace TDD_Katas_project.StringSum
{
/// <summary>
/// String Sum Kata
/// </summary>
public class StringSumKata
{
/// <summary>
/// Sums the specified num1.
/// </summary>
/// <param name="num1">The num1.</param>
/// <param name="num2">The num2.</param>
/// <returns></returns>
public static string Sum(string num1, string num2)
{
var realNum1 = GetZeroWhenNullOrEmpty(num1);
Expand Down
9 changes: 9 additions & 0 deletions src/StringSum/TestStringSumKata.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,19 @@

namespace TDD_Katas_project.StringSum
{
/// <summary>
/// Test String Sum Kata
/// </summary>
[TestFixture]
[Category("StringSumkata")]
public class TestStringSumKata
{
/// <summary>
/// Adds the return sum.
/// </summary>
/// <param name="num1">The num1.</param>
/// <param name="num2">The num2.</param>
/// <param name="expectedResult">The expected result.</param>
[TestCase("", null, "0")]
[Test]
public void AddReturnSum(string num1, string num2, string expectedResult)
Expand Down

0 comments on commit bfa01b8

Please sign in to comment.