public void TestEqualityWithWrongType() { UnitCartesian first = new UnitCartesian(1.0, 2.0, 3.0); Cartographic second = new Cartographic(1.0, 2.0, 3.0); Assert.IsFalse(first.Equals(second)); }
public void TestEqualityWithWrongType() { UnitCartesian first = new UnitCartesian(1.0, 2.0, 3.0); Cartographic second = new Cartographic(1.0, 2.0, 3.0); // ReSharper disable once SuspiciousTypeConversion.Global Assert.IsFalse(first.Equals(second)); }
public void TestEquality() { UnitCartesian first = new UnitCartesian(1.0, 2.0, 3.0); UnitCartesian second = new UnitCartesian(1.0, 2.0, 3.0); Assert.AreEqual(first, second); Assert.AreEqual(second, first); Assert.IsTrue(first == second); Assert.IsTrue(second == first); Assert.IsFalse(first != second); Assert.IsFalse(second != first); Assert.IsTrue(first.Equals(second)); Assert.IsTrue(second.Equals(first)); second = new UnitCartesian(0.0, 2.0, 3.0); Assert.AreNotEqual(first, second); Assert.AreNotEqual(second, first); Assert.IsFalse(first == second); Assert.IsFalse(second == first); Assert.IsTrue(first != second); Assert.IsTrue(second != first); Assert.IsFalse(first.Equals(second)); Assert.IsFalse(second.Equals(first)); second = new UnitCartesian(1.0, 0.0, 3.0); Assert.AreNotEqual(first, second); Assert.AreNotEqual(second, first); Assert.IsFalse(first == second); Assert.IsFalse(second == first); Assert.IsTrue(first != second); Assert.IsTrue(second != first); Assert.IsFalse(first.Equals(second)); Assert.IsFalse(second.Equals(first)); second = new UnitCartesian(1.0, 2.0, 0.0); Assert.AreNotEqual(first, second); Assert.AreNotEqual(second, first); Assert.IsFalse(first == second); Assert.IsFalse(second == first); Assert.IsTrue(first != second); Assert.IsTrue(second != first); Assert.IsFalse(first.Equals(second)); Assert.IsFalse(second.Equals(first)); }
public void TestEqualityWithWrongType() { UnitCartesian first = new UnitCartesian(1.0, 2.0, 3.0); Cartographic second = new Cartographic(1.0, 2.0, 3.0); Assert.IsFalse(first.Equals(second)); }
public void TestEquality() { UnitCartesian first = new UnitCartesian(1.0, 2.0, 3.0); UnitCartesian second = new UnitCartesian(1.0, 2.0, 3.0); Assert.AreEqual(first, second); Assert.AreEqual(second, first); Assert.IsTrue(first == second); Assert.IsTrue(second == first); Assert.IsFalse(first != second); Assert.IsFalse(second != first); Assert.IsTrue(first.Equals(second)); Assert.IsTrue(second.Equals(first)); second = new UnitCartesian(0.0, 2.0, 3.0); Assert.AreNotEqual(first, second); Assert.AreNotEqual(second, first); Assert.IsFalse(first == second); Assert.IsFalse(second == first); Assert.IsTrue(first != second); Assert.IsTrue(second != first); Assert.IsFalse(first.Equals(second)); Assert.IsFalse(second.Equals(first)); second = new UnitCartesian(1.0, 0.0, 3.0); Assert.AreNotEqual(first, second); Assert.AreNotEqual(second, first); Assert.IsFalse(first == second); Assert.IsFalse(second == first); Assert.IsTrue(first != second); Assert.IsTrue(second != first); Assert.IsFalse(first.Equals(second)); Assert.IsFalse(second.Equals(first)); second = new UnitCartesian(1.0, 2.0, 0.0); Assert.AreNotEqual(first, second); Assert.AreNotEqual(second, first); Assert.IsFalse(first == second); Assert.IsFalse(second == first); Assert.IsTrue(first != second); Assert.IsTrue(second != first); Assert.IsFalse(first.Equals(second)); Assert.IsFalse(second.Equals(first)); }