Пример #1
0
        public void BasicMethod()
        {
            const string memberSignature = "Touch GetSecondaryTouch (int index)";
            RegexMatcher matcher;

            bool found = MemberNameGenerator.TryMatchSignature(memberSignature, out matcher);

            Assert.AreEqual(found, true);
            Assert.AreEqual(matcher.Name, "METHOD");
        }
Пример #2
0
        public void EnumEntryAssignment()
        {
            const string memberSignature = "White = 0,";
            RegexMatcher matcher;

            bool found = MemberNameGenerator.TryMatchSignature(memberSignature, out matcher);

            Assert.AreEqual(found, true);
            Assert.AreEqual(matcher.Name, "ENUM_ENTRY");
        }
Пример #3
0
        public void ConstructorAssembly2ArgSystem()
        {
            const string memberSignature = "Void .ctor(System.String, System.Int32)";
            RegexMatcher matcher;

            bool found = MemberNameGenerator.TryMatchSignature(memberSignature, out matcher);

            Assert.AreEqual(found, true);
            Assert.AreEqual("CONSTRUCTOR_ASSEMBLY", matcher.Name);
        }
Пример #4
0
        public void BasicConstructor()
        {
            const string memberSignature = "AndroidJavaRunnable()";
            RegexMatcher matcher;

            bool found = MemberNameGenerator.TryMatchSignature(memberSignature, out matcher);

            Assert.AreEqual(found, true);
            Assert.AreEqual(matcher.Name, "CONSTRUCTOR");
        }
Пример #5
0
        public void ConstructorAssemblyArray1stParam()
        {
            const string memberSignature = "Void .ctor(int[])";
            RegexMatcher matcher;

            bool found = MemberNameGenerator.TryMatchSignature(memberSignature, out matcher);

            Assert.AreEqual(found, true);
            Assert.AreEqual("CONSTRUCTOR_ASSEMBLY", matcher.Name);
        }