public void SchemaReferenceTypeNotNullException()
        {
            Schema SchemaHasReferenceType = new Schema();

            SchemaHasReferenceType.ReferenceType = "Schema.json";
            Assert.Throws <InvalidOperationException>(() => CodegenTypeFactory.MakeCodegenType("name", SchemaHasReferenceType));
        }
        public void SchemaIsNotValidDictionaryException()
        {
            Schema schema = new Schema
            {
                AdditionalProperties = new Schema(),
                Type = null
            };

            Assert.Throws <InvalidOperationException>(() => CodegenTypeFactory.MakeCodegenType("NoTypeDictionary", schema));
            var typeRef = new TypeReference();

            schema.Type = new[] { typeRef };
            Assert.Throws <InvalidOperationException>(() => CodegenTypeFactory.MakeCodegenType("NoTypeDictionary", schema));
            typeRef.Name = "string";
            Assert.Throws <InvalidOperationException>(() => CodegenTypeFactory.MakeCodegenType("NoTypeDictionary", schema));
        }