EulerAnglesTests Equals Method Delta Engine Documentation

Namespace: DeltaEngine.Tests.Datatypes
Assembly: DeltaEngine.Tests (in DeltaEngine.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public void Equals()
Examples

[Test]
public void Equals()
{
    var euler1 = new EulerAngles(1, 2, 3);
    var euler2 = new EulerAngles(3, 4, 5);
    Assert.AreNotEqual(euler1, euler2);
    Assert.AreEqual(euler1, new EulerAngles(1, 2, 3));
    Assert.IsTrue(euler1 == new EulerAngles(1, 2, 3));
    Assert.IsTrue(euler1 != euler2);
    Assert.IsTrue(euler1.Equals((object)new EulerAngles(1, 2, 3)));
}
See Also