Exemplo n.º 1
0
        public void TestStructWriteEvents()
        {
            var o = new StructEvents();
            o.IntField = 23;

            var json = Json.Format(o);
            Assert.Contains(json, "OnJsonWriting");
            Assert.Contains(json, "OnJsonWritten");
        }
Exemplo n.º 2
0
        public void TestStructWriteEvents()
        {
            var o = new StructEvents();

            o.IntField = 23;

            var json = Json.Format(o);

            Assert.Contains("OnJsonWriting", json);
            Assert.Contains("OnJsonWritten", json);
        }