public void AddEnumType_should_create_and_add_when_custom_namespace()
        {
            var model = new EdmModel(DataSpace.CSpace);

            var enumType = model.AddEnumType("Foo", "Bar");

            Assert.NotNull(enumType);
            Assert.Equal("Foo", enumType.Name);
            Assert.Equal("Bar", enumType.NamespaceName);
            Assert.True(model.EnumTypes.Contains(enumType));
        }
        public void GetStructuralOrEnumType_should_return_correct_type_for_EnumType()
        {
            var model = new EdmModel(DataSpace.CSpace);
            var enumType = model.AddEnumType("Foo");

            Assert.Same(enumType, model.GetStructuralOrEnumType("Foo"));
        }
        public void AddEnumType_should_create_and_add_with_default_namespace()
        {
            var model = new EdmModel(DataSpace.CSpace);

            var enumType = model.AddEnumType("Foo");

            Assert.NotNull(enumType);
            Assert.Equal("Foo", enumType.Name);
            Assert.Equal(EdmModelExtensions.DefaultModelNamespace, enumType.NamespaceName);
            Assert.True(model.EnumTypes.Contains(enumType));
        }