public void ClassifyFaceSpanTest() { // Arrange BSPFace face = new BSPFace(); face.Points.Add(new BSPVertex { Point = new Vector3(-1.0f, -2.0f, 0.0f) }); face.Points.Add(new BSPVertex { Point = new Vector3(0.0f, 2.0f, 0.0f) }); face.Points.Add(new BSPVertex { Point = new Vector3(1.0f, -2.0f, 0.0f) }); face.Point = face.Points[0].Point; face.Normal = new Vector3(0.0f, 0.0f, 1.0f); Vector3 planePoint = new Vector3(0.0f, 1.0f, 0.0f); // Just a basic plane Vector3 planeNormal = new Vector3(0.0f, 1.0f, 0.0f); BSPTree tree = new BSPTree(); // Act tree.ClassifyFace(face, planePoint, planeNormal); // Assert Assert.AreEqual(BSPClassification.Spanning, face.Classification); }