public void PostProcessTest_Multiple() { // Arrange const string templateString = "Test number: <###123.457|3###>, and another: <###947.74933|2###>"; // Act var result = NustacheUtil.PostProcess(templateString); // Assert Assert.That(result, Is.EqualTo("Test number: 123.457, and another: 947.75")); }
public void PostProcessTest_Single() { // Arrange const string templateString = "Test number: <###123.456789|3###>"; // Act var result = NustacheUtil.PostProcess(templateString); // Assert Assert.That(result, Is.EqualTo("Test number: 123.457")); }