public void SetWaitForMoreRoutablesForwardingDelay_Should_SetProperty() { var builder = new LogfileConfigurationBuilder <StandardLoglevel>(); LogfileConfigurationBuilderExtensions.SetWaitForMoreRoutablesForwardingDelay <StandardLoglevel>(builder, TimeSpan.FromMilliseconds(1)); builder.WaitForMoreRoutablesForwardingDelay.Should().Be(TimeSpan.FromMilliseconds(1)); }
public void SetWaitForMoreRoutablesForwardingDelaySelfNull_ShouldThrow_ArgumentNullException() { Assert.Throws <ArgumentNullException>(() => LogfileConfigurationBuilderExtensions.SetWaitForMoreRoutablesForwardingDelay <StandardLoglevel>(null, TimeSpan.FromSeconds(1))); }