public void Run() { try { _serviceFounder.ThrowException(); } catch (NuGenServiceNotFoundException) { _serviceNotFoundExceptionCount.Inc(); } }
public void ExceptionTest() { try { _serviceFounder.ThrowException(); Assert.Fail(); } catch (NuGenServiceNotFoundException) { } try { _serviceFounder.ThrowException(); } catch (NuGenServiceNotFoundException <IServiceNotExist> ) { Assert.Fail(); } }