示例#1
0
        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);
        }
示例#2
0
        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);
        }
示例#3
0
        public void ShouldHaveADefaultConstructor()
        {
            TraceInputFactory factory = new TraceInputFactory();

            Assert.NotNull(factory);
        }