Unstable v0.19.3.0
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
using System;
|
||||
using Barotrauma.Networking;
|
||||
using FluentAssertions;
|
||||
using FsCheck;
|
||||
using Xunit;
|
||||
|
||||
namespace TestProject;
|
||||
|
||||
public class NetIdUtilsTests
|
||||
{
|
||||
[Fact]
|
||||
public void TestGetIdOlderThan()
|
||||
{
|
||||
Prop.ForAll<UInt16>(id =>
|
||||
{
|
||||
var olderId = NetIdUtils.GetIdOlderThan(id);
|
||||
Assert.True(NetIdUtils.IdMoreRecent(id, olderId));
|
||||
}).QuickCheckThrowOnFailure();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user