public void TestReplaceWithArray() { string[] values = { "one", "two", "three" }; var text = "Hello $, is that really $ or $?"; var result = PicoloHarvester.ReplaceWithArray(text, "$", values); Assert.Equal("Hello one, is that really two or three?", result); }
public void TestTransformText(string source, string expectedResult) { var result = PicoloHarvester.TransformText(source, 0); Assert.Equal(expectedResult, result); }