BoundingBoxTests GetHashCodeViaDictionary 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 GetHashCodeViaDictionary()
Examples

[Test]
public void GetHashCodeViaDictionary()
{
    var box = new BoundingBox(Vector3D.Zero, Vector3D.One);
    var equalBox = new BoundingBox(Vector3D.Zero, Vector3D.One);
    Assert.AreEqual(box.GetHashCode(), equalBox.GetHashCode());
    var otherBox = new BoundingBox(-Vector3D.One, Vector3D.One);
    Assert.AreNotEqual(box.GetHashCode(), otherBox.GetHashCode());
}
See Also