public void add_writer_happy_path() { var node = new OutputNode(typeof(Address)); var writer = node.AddWriter <FakeAddressWriter>(); node.Writers.Single().ShouldBeTheSameAs(writer); writer.ResourceType.ShouldEqual(typeof(Address)); writer.WriterType.ShouldEqual(typeof(FakeAddressWriter)); }
public void add_writer_happy_path() { var node = new OutputNode(typeof (Address)); Writer writer = node.AddWriter<FakeAddressWriter>(); node.Writers.Single().ShouldBeTheSameAs(writer); writer.ResourceType.ShouldEqual(typeof (Address)); writer.WriterType.ShouldEqual(typeof (FakeAddressWriter)); }