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