public void DistanceToLine_LineAndPointInserted_CorrectDistanceReturned() { Vector3 lineStart = new Vector3 { X = 0, Y = 0, Z = 0 }; Vector3 lineEnd = new Vector3 { X = 0, Y = -1, Z = 0 }; Vector3 point = new Vector3 { X = 0.5f, Y = -0.5f, Z = 0 }; float result = uut.DistanceToLine(lineStart, lineEnd, point); Assert.AreEqual(0.5f, result); }