Files
LuaCsForBarotraumaEP/Barotrauma/BarotraumaTest/NetIdUtilsTests.cs
Juan Pablo Arce 3f2c843247 Unstable v0.19.3.0
2022-09-02 15:10:56 -03:00

20 lines
418 B
C#

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