Beispiel #1
0
        public void TestParamMatchExact()
        {
            JoinPointDefination d = new JoinPointDefination(Position.Before, string.Empty, "* * ..Test.Foo(Int32, Int32)");

            Assert.IsTrue(d.Match(mFoo));
        }
Beispiel #2
0
        public void TestNamespaceNotMatch()
        {
            JoinPointDefination d = new JoinPointDefination(Position.Before, string.Empty, "* * RexToy..Test.Foo(..)");

            Assert.IsFalse(d.Match(mFoo));
        }
Beispiel #3
0
        public void TestParamMatchAny()
        {
            JoinPointDefination d = new JoinPointDefination(Position.Before, string.Empty, "* * ..Test.Run(..)");

            Assert.IsTrue(d.Match(mRun));
        }
Beispiel #4
0
        public void TestNamespaceMatch()
        {
            JoinPointDefination d = new JoinPointDefination(Position.Before, string.Empty, "* * UnitTest..Test.Foo(..)");

            Assert.IsTrue(d.Match(mFoo));
        }
Beispiel #5
0
        public void TestReturnTypeNotMatch()
        {
            JoinPointDefination d = new JoinPointDefination(Position.Before, string.Empty, "public void ..Test.Foo(Int32,Int32)");

            Assert.IsFalse(d.Match(mFoo));
        }
Beispiel #6
0
        public void TestReturnTypeMatch()
        {
            JoinPointDefination d = new JoinPointDefination(Position.Before, string.Empty, "* void ..*.Run()");

            Assert.IsTrue(d.Match(mRun));
        }
Beispiel #7
0
        public void TestAccessModifierNotMatch()
        {
            JoinPointDefination d = new JoinPointDefination(Position.Before, string.Empty, "public void ..*.Run(..)");

            Assert.IsFalse(d.Match(mRun));
        }
Beispiel #8
0
        public void TestParamNotMatch()
        {
            JoinPointDefination d = new JoinPointDefination(Position.Before, string.Empty, "* * ..Test.Foo()");

            Assert.IsFalse(d.Match(mFoo));
        }