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 GetHashCodeViaDictionary() { var first = new EulerAngles(1, 2, 3); var second = new EulerAngles(3, 4, 5); var eulerAngles = new Dictionary<EulerAngles, int> { { first, 1 }, { second, 2 } }; Assert.IsTrue(eulerAngles.ContainsKey(first)); Assert.IsTrue(eulerAngles.ContainsKey(second)); Assert.IsFalse(eulerAngles.ContainsKey(new EulerAngles(5, 6, 7))); }
See Also