Esempio n. 1
0
 public void TestSaveDoubleEntity()
 {
   var entity = new DoubleEntity {DoubleField = 16.1616d};
   DoubleEntity savedEntity = Backendless.Persistence.Save( entity );
   Assert.IsNotNull( savedEntity, "Server returned a null result" );
   Assert.IsNotNull( savedEntity.ObjectId, "Returned object doesn't have expected field id" );
   Assert.IsNotNull( savedEntity.Created, "Returned object doesn't have expected field created" );
   Assert.AreEqual( entity.DoubleField, savedEntity.DoubleField, 0.000000d, "Returned object has wrong field value" );
 }
Esempio n. 2
0
 protected bool Equals( DoubleEntity other )
 {
     return base.Equals( other ) && DoubleField.Equals( other.DoubleField );
 }
Esempio n. 3
0
 protected bool Equals(DoubleEntity other)
 {
     return(base.Equals(other) && DoubleField.Equals(other.DoubleField));
 }