Пример #1
0
        public void use_all_formatters_sets_the_usage_to_all()
        {
            var node = new ConnegInputNode(typeof(Address));

            node.UseNoFormatters();
            node.UseAllFormatters();

            node.FormatterUsage.ShouldEqual(FormatterUsage.all);
        }
Пример #2
0
        public void use_all_formatters_clears_out_any_previously_selected_formatters()
        {
            var node = new ConnegInputNode(typeof(Address));

            node.UseFormatter <JsonFormatter>();

            node.UseAllFormatters();

            node.SelectedFormatterTypes.Any().ShouldBeFalse();
        }