mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
Tests: UtilsTest.GetTrueRandomUInt
This commit is contained in:
parent
b309f546ca
commit
25e13cb6ec
18
Assets/Mirror/Tests/Editor/UtilsTests.cs
Normal file
18
Assets/Mirror/Tests/Editor/UtilsTests.cs
Normal 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));
|
||||
}
|
||||
}
|
||||
}
|
11
Assets/Mirror/Tests/Editor/UtilsTests.cs.meta
Normal file
11
Assets/Mirror/Tests/Editor/UtilsTests.cs.meta
Normal file
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 4334d1acdbce04172b3faaa632129ba7
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Loading…
Reference in New Issue
Block a user