public void JsonOnly_from_scratch()
        {
            var node = new OutputNode(typeof(Address));

            node.JsonOnly();

            node.Writers.ShouldHaveCount(1);
            node.UsesFormatter <JsonFormatter>().ShouldBeTrue();
        }
        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();
        }
Exemple #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();
        }
Exemple #4
0
        public void JsonOnly_from_scratch()
        {
            var node = new OutputNode(typeof(Address));
            node.JsonOnly();

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