コード例 #1
0
ファイル: AspectSyntaxTest.cs プロジェクト: rexzh/RexToy
        public void TestParamMatchAny()
        {
            JoinPointDefination d = new JoinPointDefination(Position.Before, string.Empty, "* * ..Test.Run(..)");

            Assert.IsTrue(d.Match(mRun));
        }
コード例 #2
0
ファイル: AspectSyntaxTest.cs プロジェクト: rexzh/RexToy
        public void TestNamespaceMatch()
        {
            JoinPointDefination d = new JoinPointDefination(Position.Before, string.Empty, "* * UnitTest..Test.Foo(..)");

            Assert.IsTrue(d.Match(mFoo));
        }
コード例 #3
0
ファイル: AspectSyntaxTest.cs プロジェクト: rexzh/RexToy
        public void TestNamespaceNotMatch()
        {
            JoinPointDefination d = new JoinPointDefination(Position.Before, string.Empty, "* * RexToy..Test.Foo(..)");

            Assert.IsFalse(d.Match(mFoo));
        }
コード例 #4
0
ファイル: AspectSyntaxTest.cs プロジェクト: rexzh/RexToy
        public void TestReturnTypeNotMatch()
        {
            JoinPointDefination d = new JoinPointDefination(Position.Before, string.Empty, "public void ..Test.Foo(Int32,Int32)");

            Assert.IsFalse(d.Match(mFoo));
        }
コード例 #5
0
ファイル: AspectSyntaxTest.cs プロジェクト: rexzh/RexToy
        public void TestReturnTypeMatch()
        {
            JoinPointDefination d = new JoinPointDefination(Position.Before, string.Empty, "* void ..*.Run()");

            Assert.IsTrue(d.Match(mRun));
        }
コード例 #6
0
ファイル: AspectSyntaxTest.cs プロジェクト: rexzh/RexToy
        public void TestAccessModifierNotMatch()
        {
            JoinPointDefination d = new JoinPointDefination(Position.Before, string.Empty, "public void ..*.Run(..)");

            Assert.IsFalse(d.Match(mRun));
        }
コード例 #7
0
ファイル: AspectSyntaxTest.cs プロジェクト: rexzh/RexToy
        public void TestParamNotMatch()
        {
            JoinPointDefination d = new JoinPointDefination(Position.Before, string.Empty, "* * ..Test.Foo()");

            Assert.IsFalse(d.Match(mFoo));
        }
コード例 #8
0
ファイル: AspectSyntaxTest.cs プロジェクト: rexzh/RexToy
        public void TestParamMatch()
        {
            JoinPointDefination d = new JoinPointDefination(Position.Before, string.Empty, "* * ..Test.Foo(Int32, *)");

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