Exemple #1
0
        public void Should_not_put_double_underscore()
        {
            var t = new WithUnderscore {
                user_id = 0
            };

            Assert.That(t.ToJson(), Is.EqualTo("{\"user_id\":0}"));
        }
        public void Should_not_put_double_underscore()
        {
            var t = new WithUnderscore { user_id = 0 };
            Assert.That(t.ToJson(), Is.EqualTo("{\"user_id\":0}"));

            var u = new WithUnderscoreDigits { user_id_0 = 0 };
            Assert.That(u.ToJson(), Is.EqualTo("{\"user_id_0\":0}"));
        }