using System.Collections.Generic; using System.Linq; using NUnit.Framework; namespace Mirror.Tests { public class ExtensionsTest { // supposed to return same result on all platforms [Test] public void GetStableHashHode() { Assert.That("".GetStableHashCode(), Is.EqualTo(23)); Assert.That("Test".GetStableHashCode(), Is.EqualTo(23844169)); } [Test] public void CopyToList() { List source = new List{1, 2, 3}; List destination = new List(); source.CopyTo(destination); Assert.That(destination.SequenceEqual(source), Is.True); } } }