public void ConfigurationExceptionConstructors() { _ = new ConfigurationException(); _ = new ConfigurationException("exception"); _ = new ConfigurationException(new Exception("bang")); var e = new ConfigurationException("exception", new Exception("bang")); Assert.That(e.Message, Is.EqualTo("exception")); Assert.That(e.InnerException, Is.Not.Null); Assert.That(e.InnerException.Message, Is.EqualTo("bang")); e = e.SerializeAndDeSerialize(); Assert.That(e.Message, Is.EqualTo("exception")); Assert.That(e.InnerException, Is.Not.Null); Assert.That(e.InnerException.Message, Is.EqualTo("bang")); }