Tests: UtilsTest.GetTrueRandomUInt

This commit is contained in:
vis2k 2021-06-22 19:10:24 +08:00
parent b309f546ca
commit 25e13cb6ec
2 changed files with 29 additions and 0 deletions

View File

@ -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));
}
}
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 4334d1acdbce04172b3faaa632129ba7
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: