public void CanGetEnumValue() { using (var con = OpenDbConnection()) { con.CreateTable<TypeWithEnum>(true); var obj = new TypeWithEnum { Id = 1, EnumValue = SomeEnum.Value1 }; con.Save(obj); var target = con.SingleById<TypeWithEnum>(obj.Id); Assert.AreEqual(obj.Id, target.Id); Assert.AreEqual(obj.EnumValue, target.EnumValue); } }
public void CanGetEnumValue() { using (var con = OpenDbConnection()) { con.CreateTable <TypeWithEnum>(true); var obj = new TypeWithEnum { Id = 1, EnumValue = SomeEnum.Value1 }; con.Save(obj); var target = con.SingleById <TypeWithEnum>(obj.Id); Assert.AreEqual(obj.Id, target.Id); Assert.AreEqual(obj.EnumValue, target.EnumValue); } }