예제 #1
0
        public void JsonOnly_from_scratch()
        {
            var node = new OutputNode(typeof(Address));

            node.JsonOnly();

            node.Writers.ShouldHaveCount(1);
            node.UsesFormatter <JsonFormatter>().ShouldBeTrue();
        }
예제 #2
0
        public void JsonOnly_with_existing_stuff()
        {
            var node = new OutputNode(typeof(Address));

            node.UsesFormatter <XmlFormatter>();

            node.JsonOnly();

            node.Writers.ShouldHaveCount(1);
            node.UsesFormatter <JsonFormatter>().ShouldBeTrue();
        }
예제 #3
0
        public void JsonOnly_with_existing_stuff()
        {
            var node = new OutputNode(typeof(Address));
            node.UsesFormatter<XmlFormatter>();

            node.JsonOnly();

            node.Writers.ShouldHaveCount(1);
            node.UsesFormatter<JsonFormatter>().ShouldBeTrue();
        }
예제 #4
0
        public void JsonOnly_from_scratch()
        {
            var node = new OutputNode(typeof(Address));
            node.JsonOnly();

            node.Writers.ShouldHaveCount(1);
            node.UsesFormatter<JsonFormatter>().ShouldBeTrue();
        }