public void SerialisationWorksCorrectly() { var testMessage = "This is a test message"; var error = new ConfigurationException(testMessage); var result = error.RunSerialisationTest(); Assert.AreEqual(testMessage, result.ConfigurationProblem); }