Ejemplo n.º 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");
        }
Ejemplo n.º 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");
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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");
        }
Ejemplo n.º 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);
        }