public void Decimal128Tests(Decimal128 value, bool isManaged) { RealmValue rv = value; if (isManaged) { var retrievedObject = PersistAndFind(rv); rv = retrievedObject.RealmValueProperty; } Assert.That(rv == value); Assert.That(rv.Type, Is.EqualTo(RealmValueType.Decimal128)); Assert.That((Decimal128)rv == value); Assert.That(rv.As <Decimal128>() == value); Assert.That((Decimal128?)rv == value); Assert.That(rv.As <Decimal128?>() == value); Assert.That(rv.AsDecimal128() == value); Assert.That(rv.AsNullableDecimal128() == value); Assert.That(rv != RealmValue.Null); }