public void Test_DetermineFaceIdx(Vector3 vector, int expected) { NormalBinner.UniformPolyhedron polyhedron = new TestCube(); int actual = polyhedron.DetermineFaceIdx(vector); Assert.AreEqual(expected, actual); }
public void Test_FaceCount() { int expected = 6; NormalBinner.UniformPolyhedron polyhedron = new TestCube(); int actual = polyhedron.NumberOfFaces; Assert.AreEqual(expected, actual); }
public void Test_UniformPolyhedron_Normals() { Vector3[] expected = { new Vector3(+0, +0, +1), new Vector3(+0, +0, -1), new Vector3(+0, +1, +0), new Vector3(+0, -1, +0), new Vector3(+1, +0, +0), new Vector3(-1, +0, +0), }; Vector3[] actual = new TestCube().normals; Assert.That(actual, Is.EquivalentTo(expected)); }