first commit

This commit is contained in:
2025-07-06 00:23:46 +02:00
commit 38f50c8819
1788 changed files with 112878 additions and 0 deletions

View File

@@ -0,0 +1,39 @@
using FluentAssertions;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace NitroxModel.DataStructures
{
[TestClass]
public class NitroxInt3Test
{
private NitroxInt3 int3;
[TestInitialize]
public void Setup()
{
int3 = new NitroxInt3(5, 10, 15);
}
[TestMethod]
public void Equals()
{
NitroxInt3 other1 = new NitroxInt3(5, 10, 15);
NitroxInt3 other2 = new NitroxInt3(15, 10, 5);
int3.Equals(other1).Should().BeTrue();
int3.Equals(other2).Should().BeFalse();
}
[TestMethod]
public void Floor()
{
NitroxInt3.Floor(5.1f, 10.4f, 15.5f).Should().Be(int3);
}
[TestMethod]
public void Ceil()
{
NitroxInt3.Ceil(4.1f, 9.4f, 14.5f).Should().Be(int3);
}
}
}