public void GetCandidates_WhenGivenTypeIsPerfLogger_DoNotThrowException() { Assert.DoesNotThrow(() => MoranbernateBootstrap.GetRegistrationCandidates <DefaultMetricsReporter>(typeof(DefaultPerfLogger <>))); }
public void GetCandidates_WhenGivenTypeIsNotPerfLogger_ThrowException() { Assert.Throws <StorageRegistrationException>(() => MoranbernateBootstrap.GetRegistrationCandidates <DefaultMetricsReporter>(this.GetType())); }