예제 #1
0
        public void AddComplexProperty_should_create_and_add_complex_property()
        {
            var complexType         = new ComplexType("C");
            var complexTypeProperty = new ComplexType("D");
            var property            = complexType.AddComplexProperty("Foo", complexTypeProperty);

            Assert.NotNull(property);
            Assert.Equal("Foo", property.Name);
            Assert.Same(complexTypeProperty, property.ComplexType);
            Assert.True(complexType.Properties.Contains(property));
        }