public void CreateShouldRequireHealthReporter() { var configurationMock = new Mock <IConfigurationSection>(); TraceInputFactory target = new TraceInputFactory(); ArgumentNullException ex = Assert.Throws <ArgumentNullException>(() => { target.CreateItem(configurationMock.Object, null); }); Assert.Equal("healthReporter", ex.ParamName); }
public void CreateShouldRequireConfiguration() { var healthReporterMock = new Mock <IHealthReporter>(); TraceInputFactory target = new TraceInputFactory(); ArgumentNullException ex = Assert.Throws <ArgumentNullException>(() => { target.CreateItem(null, healthReporterMock.Object); }); Assert.Equal("configuration", ex.ParamName); }
public void ShouldHaveADefaultConstructor() { TraceInputFactory factory = new TraceInputFactory(); Assert.NotNull(factory); }