예제 #1
0
        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));
        }
예제 #2
0
        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));
        }