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

Test for multiple delimiters

  • Loading branch information...
michal-franc committed May 27, 2014
1 parent f36f974 commit 5f5b2d5c9d47dcb659ba3e9821af492fa4117fc0
Showing with 13 additions and 0 deletions.
  1. +13 −0 TddStringCalculator/TddStringCalculator/StringCalculatorTests.cs
@@ -105,5 +105,18 @@ public void MultiCharDelimeter_Is_Supported()

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

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

var actual = calculator.SumFromString(value);

var expected = 6;

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

0 comments on commit 5f5b2d5

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