public void AddLoggingType_AlreadyExists() { _configuration = new LoggingConfiguration(); LoggingType newType = new LoggingType(true, "SomeLabel"); _configuration.AddLoggingType("SomeKey", newType); Assert.IsFalse(_configuration.AddLoggingType("SomeKey", newType)); }
public void AddLoggingType_New() { _configuration = new LoggingConfiguration(); LoggingType newType = new LoggingType(true, "SomeLabel"); Assert.IsTrue(_configuration.AddLoggingType("SomeKey", newType)); }