Exemplo n.º 1
0
        public void Can_write_basic_model_builder_extension_with_common_name()
        {
            var builder = new BasicModelBuilder();

            var returnedBuilder = builder
                                  .SharedNameExtension("V1")
                                  .SharedNameExtension("V2");

            Assert.IsType <BasicModelBuilder>(returnedBuilder);

            var model = builder.Model;

            Assert.Equal("V2.Annotation", model["Annotation"]);
            Assert.Equal("V2.Metadata", model["Metadata"]);
            Assert.Equal("V2.Model", model["Model"]);
        }