first commit
This commit is contained in:
39
Nitrox.Test/Model/DataStructures/NitroxInt3Test.cs
Normal file
39
Nitrox.Test/Model/DataStructures/NitroxInt3Test.cs
Normal 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);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user