コード例 #1
0
 public void SetUp()
 {
     _testHelper        = new SecurityClientTestHelper();
     _securityClient    = _testHelper.CreateSecurityClient();
     _methodInformation = MockRepository.GenerateMock <IMethodInformation>();
     _methodInformation.Expect(n => n.Name).Return("StaticMethod");
 }
コード例 #2
0
 public void SetUp()
 {
     _testHelper        = new SecurityClientTestHelper();
     _securityClient    = _testHelper.CreateSecurityClient();
     _methodInformation = MockRepository.GenerateMock <IMethodInformation> ();
     _methodInformation.Expect(n => n.Name).Return("InstanceMethod");
     _methodInfo = typeof(SecurableObject).GetMethod("IsValid", new[] { typeof(SecurableObject) });
 }