public void Can_select_on_custom_default_empty_serialized_nullable_enum(int index)
        {
            EnumSerializerWithEmptyDefaults.Configure();

            using (var db = OpenDbConnection())
            {
                var expected = InitNullable(db, index);

                var unknownActivities = db.Select <NullableActivity>(
                    s => s.ActivityType == expected.ActivityType &&
                    s.Comment == expected.Comment);

                Assert.That(unknownActivities.Count, Is.EqualTo(1));
            }
        }
        public void Can_select_on_custom_default_empty_serialized_enum(int index)
        {
            if (Dialect == Dialect.Oracle)
            {
                Assert.Ignore("Can't work on Oracle because Oracle does not allow empty strings in a varchar column");
            }

            EnumSerializerWithEmptyDefaults.Configure();

            using (var db = OpenDbConnection())
            {
                var expected = Init(db, index);

                var unknownActivities = db.Select <Activity>(
                    s => s.ActivityType == expected.ActivityType &&
                    s.Comment == expected.Comment);

                Assert.That(unknownActivities.Count, Is.EqualTo(1));
            }
        }