示例#1
0
        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);
        }
示例#2
0
        public void TestTransformText(string source, string expectedResult)
        {
            var result = PicoloHarvester.TransformText(source, 0);

            Assert.Equal(expectedResult, result);
        }