Namespace: DeltaEngine.Tests.Datatypes
Assembly: DeltaEngine.Tests (in DeltaEngine.Tests.dll) Version: 1.1.1.0 (1.1.1)
Assembly: DeltaEngine.Tests (in DeltaEngine.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Examples
[Test] public void Equals() { Assert.AreNotEqual(v1, v2); Assert.AreEqual(v1, new Vector2D(1, 2)); Assert.IsTrue(v1 == new Vector2D(1, 2)); Assert.IsTrue(v1 != v2); Assert.IsTrue(v1.Equals((object)new Vector2D(1, 2))); }
[Test] public void NearlyEquals() { Assert.IsTrue(v1.IsNearlyEqual(new Vector2D(1.000001f, 1.99999f))); Assert.IsFalse(v1.IsNearlyEqual(new Vector2D(1, 2.1f))); }
See Also