public void Equals_SameTypes_ReturnTrue() { var point = new PointCore(9.854, 3819.324); var point2 = new PointCore(9.854, 3819.324); Assert.IsTrue(point.Equals(point2)); }
public void Equals_SameTypesXDifferent_ReturnFalse() { var point = new PointCore(9.854, 3819.324); var point2 = new PointCore(9.85, 3819.324); Assert.IsTrue(!point.Equals(point2)); }
public void Equals_DifferentTypes_ReturnFalse() { var point = new PointCore(9.854, 3819.324); var obj = new object(); Assert.IsTrue(!point.Equals(obj)); }
public void Equals_NullPointModel_ReturnFalse() { var point = new PointCore(9.854, 3819.324); PointCore obj = null; Assert.IsTrue(!point.Equals(obj)); }