public void DefaultValue_Persistance()
        {
            var model = new FlagEnumExtendedModel();

            this.Session.Save(model);
            this.Session.Flush();
            this.Session.Clear();

            var modelFromDb = this.Session.Get <FlagEnumExtendedModel>(model.Id);

            Assert.That(modelFromDb.SampleEnum, Is.EqualTo((ExtendedTestFlagEnum)0));
            Assert.That(modelFromDb.SampleEnumTwo, Is.EqualTo((ExtendedTestFlagEnum)0));
        }
        public void StringValue_WithDefaultSeparator_Persistance()
        {
            var enumField = ExtendedTestFlagEnum.Something | ExtendedTestFlagEnum.Misc;

            var model = new FlagEnumExtendedModel();

            model.SampleEnum = enumField;

            this.Session.Save(model);
            this.Session.Flush();
            this.Session.Clear();

            var modelFromDb = this.Session.Get <FlagEnumExtendedModel>(model.Id);

            Assert.That(modelFromDb.SampleEnum, Is.EqualTo(enumField));
        }