diff --git a/Assets/Mirror/Tests/Editor/UtilsTests.cs b/Assets/Mirror/Tests/Editor/UtilsTests.cs new file mode 100644 index 000000000..a13560eae --- /dev/null +++ b/Assets/Mirror/Tests/Editor/UtilsTests.cs @@ -0,0 +1,18 @@ +using System; +using NUnit.Framework; +using UnityEngine; +using UnityEngine.TestTools; + +namespace Mirror.Tests +{ + public class UtilsTests + { + [Test] + public void GetTrueRandomUInt() + { + uint first = Utils.GetTrueRandomUInt(); + uint second = Utils.GetTrueRandomUInt(); + Assert.That(first, !Is.EqualTo(second)); + } + } +} diff --git a/Assets/Mirror/Tests/Editor/UtilsTests.cs.meta b/Assets/Mirror/Tests/Editor/UtilsTests.cs.meta new file mode 100644 index 000000000..fef4a5ef1 --- /dev/null +++ b/Assets/Mirror/Tests/Editor/UtilsTests.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 4334d1acdbce04172b3faaa632129ba7 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: