예제 #1
0
        public void Parse(string input, string expectedConsumerCalls)
        {
            JsonTestConsumer consumer = new JsonTestConsumer();

            Serializer.Parse(input, consumer);
            Assert.That(consumer.ToString(), Is.EqualTo(expectedConsumerCalls));
        }
예제 #2
0
        public void Parsing_Should_Fail(string input)
        {
            JsonTestConsumer consumer    = new JsonTestConsumer();
            TestDelegate     parseAction = () => Serializer.Parse(input, consumer);

            Assert.That(parseAction, Throws.Exception);
        }
예제 #3
0
 protected JsonTestConsumer(JsonTestConsumer parent)
 {
     this.mStringBuilder = parent.mStringBuilder;
 }
예제 #4
0
 public JsonObjectTestConsumer(JsonTestConsumer parent)
     : base(parent)
 {
 }
예제 #5
0
 public JsonArrayTestConsumer(JsonTestConsumer parent)
     : base(parent)
 {
 }