예제 #1
0
        public void TestFormatAttachNode()
        {
            Vector3    position    = new Vector3(1.2f, 2.3f, 3.4f);
            Vector3    orientation = new Vector3(4.5f, 5.6f, 6.7f);
            AttachNode node        = new AttachNode
            {
                position      = position,
                orientation   = orientation,
                size          = 4,
                attachMethod  = AttachNodeMethod.NONE,
                ResourceXFeed = true,
                rigid         = false,
            };

            string expectedStr = "1.2, 2.3, 3.4, 4.5, 5.6, 6.7, 4, 5, 1, 0";

            Assert.Equal(expectedStr, AttachNodeValueParser.FormatAttachNode(node));
        }
예제 #2
0
 public void TestFormatAttachNode__Null()
 {
     Assert.Throws <ArgumentNullException>(() => AttachNodeValueParser.FormatAttachNode(null));
 }