Exemple #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");
        }
Exemple #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");
        }
Exemple #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);
        }
Exemple #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");
        }
Exemple #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);
        }