Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Test for MultiChar Delimiters

  • Loading branch information...
michal-franc committed May 26, 2014
1 parent 90640c7 commit 60695c28ed128c31402622510fd75287d6c268e0
Showing with 13 additions and 0 deletions.
  1. +13 −0 TddStringCalculator/TddStringCalculator/StringCalculatorTests.cs
@@ -92,5 +92,18 @@ public void Sum_ignores_number_greater_than_1000()

Assert.That(actual, Is.EqualTo(expected));
}

[Test]
public void MultiCharDelimeter_Is_Supported()
{
var calculator = new StringCalculator();
var value = "//;;;\n1;;;2;;;3;;;4";

var actual = calculator.SumFromString(value);

var expected = 10;

Assert.That(actual, Is.EqualTo(expected));
}
}
}

0 comments on commit 60695c2

Please sign in to comment.
You can’t perform that action at this time.