public void UnionsOfDifferentRecordTypesShouldBeAllowed()
        {
            var unionSchema = new UnionSchema(Schema.Create(typeof(Person)), Schema.Create(typeof(Car)));

            var fromJsonSchema = Schema.Create(unionSchema.ToString());

            Assert.NotNull(fromJsonSchema);
        }
        public void UnionsOfSameTypeShouldThrowException(Type type)
        {
            var unionSchema = new UnionSchema(Schema.Create(type), Schema.Create(type));

            Assert.ThrowsAny <Exception>(() =>
                                         Schema.Create(unionSchema.ToString())
                                         );
        }