protected override void EstablishContext()
 {
     CatchExceptionInEstablishContext = true;
     base.EstablishContext();
     IoDeviceWrapperFactoryUnloadDomainException = new Exception();
     IoDeviceWrapperFactory.Setup(w => w.UnloadDomain()).Throws(IoDeviceWrapperFactoryUnloadDomainException);
 }
Beispiel #2
0
 public void Test()
 {
     IoDeviceWrapperFactory.Verify(f => f.UnloadDomain(), Times.Once());
 }
Beispiel #3
0
 public void Test()
 {
     IoDeviceWrapperFactory.Verify(f => f.Create(), Times.Exactly(2));
 }