Ejemplo n.º 1
0
        public void AutoPropPtr()
        {
            const string codeContent        = "Transform parent GetParent SetParent";
            var          memberName         = MemberNameGenerator.GetUniqueMemberID(codeContent, TypeKind.AutoProp);
            const string expectedMemberName = "_parent";

            Assert.AreEqual(expectedMemberName, memberName);
        }
Ejemplo n.º 2
0
        public void AutoProp()
        {
            const string codeContent        = "Matrix4x4 worldToLocalMatrix GetWorldToLocalMatrix";
            var          memberName         = MemberNameGenerator.GetUniqueMemberID(codeContent, TypeKind.AutoProp);
            const string expectedMemberName = "_worldToLocalMatrix";

            Assert.AreEqual(expectedMemberName, memberName);
        }