コード例 #1
0
ファイル: InitializeTests.cs プロジェクト: mshmelev/Shaspect
        public void Initialize_Called_For_Every_Nested_Method()
        {
            var t2= new Test2Class();
            t2.SimpleMethod();
            t2.SimpleMethod2();

            Assert.Contains (typeof (Test2Class).GetMethod ("SimpleMethod"), methodInfos2);
            Assert.Contains (typeof (Test2Class).GetMethod ("SimpleMethod2"), methodInfos2);
        }