コード例 #1
0
        public void NotUseDefaultValue()
        {
            var p        = new Vector3Property(Vector3.zero);
            var expected = "0 0 0";

            Assert.AreEqual(expected, p.MakeString());
        }
コード例 #2
0
        public void SameWithDefaultValue()
        {
            var p        = new Vector3Property(Vector3.one, Vector3.one);
            var expected = "";

            Assert.AreEqual(expected, p.MakeString());
        }
コード例 #3
0
        public void DifferentWithDefaultValue()
        {
            var p        = new Vector3Property(Vector3.one, Vector3.zero);
            var expected = "1 1 1";

            Assert.AreEqual(expected, p.MakeString());
        }