public void WriteTokenStringsOk()
        {
            var tp = new TokenizedWriter
            {
                "String",
                { "test", null },
                { "dt", "g" }
            };
            var dtString = _dt.ToString("g");

            Assert.Equal("String1" + dtString, tp.GetString(_provider.Get));
            Assert.Equal("String1" + dtString, tp.GetString(_provider));
            Assert.Equal("String%test%%dt:g%", tp.GetString(x => null));
        }
        public void ParseOk()
        {
            var tp = new TokenizedWriter
            {
                "Str"
            };

            tp.AddTokenizedString("ing%test%%dt:g%!");
            var dtString = _dt.ToString("g");

            Assert.Equal("String1" + dtString + "!", tp.GetString(_provider.Get));
            Assert.Equal("String1" + dtString + "!", tp.GetString(_provider));
            Assert.Equal("String%test%%dt:g%!", tp.GetString(x => null));
        }
        public void WriteConstStringsOk()
        {
            var tp = new TokenizedWriter();

            Assert.Equal("", tp.GetString(x => null));
            Assert.Equal("", tp.GetString(_provider));
            tp.Add("String");
            Assert.Equal("String", tp.GetString(x => null));
            Assert.Equal("String", tp.GetString(_provider));
            tp.Add("Works");
            Assert.Equal("StringWorks", tp.GetString(x => null));
            Assert.Equal("StringWorks", tp.GetString(_provider));
        }