Esempio n. 1
0
 public void TestReturnTypeNotMatch()
 {
     JoinPointDefination d = new JoinPointDefination(Position.Before, string.Empty, "public void ..Test.Foo(Int32,Int32)");
     Assert.IsFalse(d.Match(mFoo));
 }
Esempio n. 2
0
 public void TestParamNotMatch()
 {
     JoinPointDefination d = new JoinPointDefination(Position.Before, string.Empty, "* * ..Test.Foo()");
     Assert.IsFalse(d.Match(mFoo));
 }
Esempio n. 3
0
 public void TestReturnTypeMatch()
 {
     JoinPointDefination d = new JoinPointDefination(Position.Before, string.Empty, "* void ..*.Run()");
     Assert.IsTrue(d.Match(mRun));
 }
Esempio n. 4
0
 public void TestParamMatchExact()
 {
     JoinPointDefination d = new JoinPointDefination(Position.Before, string.Empty, "* * ..Test.Foo(Int32, Int32)");
     Assert.IsTrue(d.Match(mFoo));
 }
Esempio n. 5
0
 public void TestParamMatchAny()
 {
     JoinPointDefination d = new JoinPointDefination(Position.Before, string.Empty, "* * ..Test.Run(..)");
     Assert.IsTrue(d.Match(mRun));
 }
Esempio n. 6
0
 public void TestNamespaceNotMatch()
 {
     JoinPointDefination d = new JoinPointDefination(Position.Before, string.Empty, "* * RexToy..Test.Foo(..)");
     Assert.IsFalse(d.Match(mFoo));
 }
Esempio n. 7
0
 public void TestNamespaceMatch()
 {
     JoinPointDefination d = new JoinPointDefination(Position.Before, string.Empty, "* * UnitTest..Test.Foo(..)");
     Assert.IsTrue(d.Match(mFoo));
 }
Esempio n. 8
0
 public void TestAccessModifierNotMatch()
 {
     JoinPointDefination d = new JoinPointDefination(Position.Before, string.Empty, "public void ..*.Run(..)");
     Assert.IsFalse(d.Match(mRun));
 }