public static void Register___Should_not_throw___When_called_multiple_times() { // Arrange, Act var ex1 = Record.Exception(() => BsonConfigurationManager.Configure <AccountingTimeBsonConfiguration>()); var ex2 = Record.Exception(() => BsonConfigurationManager.Configure <AccountingTimeBsonConfiguration>()); // Assert ex1.Should().BeNull(); ex2.Should().BeNull(); }
public AccountingTimeBsonConfigurationTest() { BsonConfigurationManager.Configure <AccountingTimeBsonConfiguration>(); }