Пример #1
0
        public void should_export_a_int3_list_with_three_items()
        {
            // Create a simple list of mesh face texture coordinates
            var firstInt3 = new Int3(3, 5, 7);
            var secondInt3 = new Int3(8, 9, 10);
            var thirdInt3 = new Int3(2, 2, 7);

            var aList = new List<Int3> { firstInt3, secondInt3, thirdInt3 };

            ListExtensions.ExportInt3ListToStream(aList, _mockStream.Object, "MESH_FACE_DIFFUSE_COLOR_LIST");

            // Check the result
            Assert.That(_lines.Count, Iz.EqualTo(5));

            Assert.That(_lines[0], Iz.EqualTo("\t\t\tMESH_FACE_DIFFUSE_COLOR_LIST {"));
            Assert.That(_lines[1], Iz.EqualTo("\t\t\t\t3 5 7"));
            Assert.That(_lines[2], Iz.EqualTo("\t\t\t\t8 9 10"));
            Assert.That(_lines[3], Iz.EqualTo("\t\t\t\t2 2 7"));
            Assert.That(_lines[4], Iz.EqualTo("\t\t\t}"));
        }
Пример #2
0
        public void should_print_int3_to_string()
        {
            Int3 p = new Int3(1, 2, 3);

              Assert.That(p.ToString(), Iz.EqualTo("1 2 3"));
        }