Beispiel #1
0
 // called after all teardown is done, but exception makes no test fail
 public void Dispose()
 {
     // bootstapping and disposing happens once per test: two test => twice
     _bootstrapper.Received(2).Bootstrap(Arg.Any <IAppHost>());
     _bootstrapper.Received(2).Dispose();
 }
Beispiel #2
0
 // called after all teardown is done, but exception makes no test fail
 public void Dispose()
 {
     // bootstapping and disposing happens exactly once
     _bootstrapper.Received(1).Bootstrap(Arg.Any <IAppHost>());
     _bootstrapper.Received(1).Dispose();
 }