27 lines
708 B
C#
27 lines
708 B
C#
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<int> source = new List<int>{1, 2, 3};
|
|
List<int> destination = new List<int>();
|
|
source.CopyTo(destination);
|
|
Assert.That(destination.SequenceEqual(source), Is.True);
|
|
}
|
|
}
|
|
}
|