public void add_writer_with_explicit_condition() { var node = new OutputNode(typeof(Address)); var theFormatter = new NewtonsoftJsonFormatter(); node.Add(theFormatter); node.Explicits.Single().ShouldBeOfType <FormatterWriter <Address> >(); }
public void add_reader_by_formatter() { var node = new InputNode(typeof(Address)); var formatter = new NewtonsoftJsonFormatter(); node.Add(formatter); node.Explicits.Single() .ShouldBeOfType <FormatterReader <Address> >() .Formatter.ShouldBeTheSameAs(formatter); }