public void should_export_a_point3_list_with_three_items() { // Create a simple list of integers var firstPoint3 = new Point3(3, 5.01f, 7); var secondPoint3 = new Point3(8, -9.005f, 10); var thirdPoint3 = new Point3(2, 2, 7); var aList = new List<Point3> { firstPoint3, secondPoint3, thirdPoint3 }; ListExtensions.ExportPoint3ListToStream(aList, _mockStream.Object, "MODEL_POSITION_LIST"); // Check the result Assert.That(_lines.Count, Iz.EqualTo(5)); Assert.That(_lines[0], Iz.EqualTo("\t\t\tMODEL_POSITION_LIST {")); Assert.That(_lines[1], Iz.EqualTo("\t\t\t\t3.000000 5.010000 7.000000")); Assert.That(_lines[2], Iz.EqualTo("\t\t\t\t8.000000 -9.005000 10.000000")); Assert.That(_lines[3], Iz.EqualTo("\t\t\t\t2.000000 2.000000 7.000000")); Assert.That(_lines[4], Iz.EqualTo("\t\t\t}")); }
public void should_print_point3_to_string() { Point3 p = new Point3(1, 2, 3); Assert.That(p.ToString(), Iz.EqualTo("1.000000 2.000000 3.000000")); }