public void TestReturnTypeNotMatch() { JoinPointDefination d = new JoinPointDefination(Position.Before, string.Empty, "public void ..Test.Foo(Int32,Int32)"); Assert.IsFalse(d.Match(mFoo)); }
public void TestParamNotMatch() { JoinPointDefination d = new JoinPointDefination(Position.Before, string.Empty, "* * ..Test.Foo()"); Assert.IsFalse(d.Match(mFoo)); }
public void TestReturnTypeMatch() { JoinPointDefination d = new JoinPointDefination(Position.Before, string.Empty, "* void ..*.Run()"); Assert.IsTrue(d.Match(mRun)); }
public void TestParamMatchExact() { JoinPointDefination d = new JoinPointDefination(Position.Before, string.Empty, "* * ..Test.Foo(Int32, Int32)"); Assert.IsTrue(d.Match(mFoo)); }
public void TestParamMatchAny() { JoinPointDefination d = new JoinPointDefination(Position.Before, string.Empty, "* * ..Test.Run(..)"); Assert.IsTrue(d.Match(mRun)); }
public void TestNamespaceNotMatch() { JoinPointDefination d = new JoinPointDefination(Position.Before, string.Empty, "* * RexToy..Test.Foo(..)"); Assert.IsFalse(d.Match(mFoo)); }
public void TestNamespaceMatch() { JoinPointDefination d = new JoinPointDefination(Position.Before, string.Empty, "* * UnitTest..Test.Foo(..)"); Assert.IsTrue(d.Match(mFoo)); }
public void TestAccessModifierNotMatch() { JoinPointDefination d = new JoinPointDefination(Position.Before, string.Empty, "public void ..*.Run(..)"); Assert.IsFalse(d.Match(mRun)); }