コード例 #1
0
        public void Format_parse_and_render_string_format()
        {
            var pp = PropertyProvider.FromValue(new {
                planet = "Phazon",
            });

            Assert.Equal("Hello, Phazon", PropertyProvider.Format("Hello, ${planet}", pp));
        }
コード例 #2
0
 public void Format_implicitly_converts_to_adapter()
 {
     Assert.Equal("Hello, Phazon", PropertyProvider.Format("Hello, ${planet}", new {
         planet = "Phazon",
     }));
 }