public void CompareMaxIds_null_both() { string idA = null; string idB = null; var result = RepoPollAgent.CompareMaxIds(idA, idB); Assert.IsTrue(result == 0); }
public void CompareMaxIds_null_right() { string idA = "123"; string idB = null; var result = RepoPollAgent.CompareMaxIds(idA, idB); Assert.IsTrue(result > 0); }
public void CompareMaxIds_null_left() { string idA = null; string idB = "-1123"; var result = RepoPollAgent.CompareMaxIds(idA, idB); Assert.IsTrue(result < 0); }
public void CompareMaxIds_date_right() { string idA = "2019-05-28 11:01:47.499"; string idB = "2019-05-28 11:00:47.499"; var result = RepoPollAgent.CompareMaxIds(idA, idB); Assert.IsTrue(result > 0); }
public void CompareMaxIds_date_equal() { string idA = "2019-05-28 11:00:47.499"; string idB = "2019-05-28 11:00:47.499"; var result = RepoPollAgent.CompareMaxIds(idA, idB); Assert.AreEqual(0, result); }
public void CompareMaxIds_int_equal() { string idA = "123"; string idB = "123"; var result = RepoPollAgent.CompareMaxIds(idA, idB); Assert.AreEqual(0, result); }