public void OutcomeSurvivesSerialization()
 {
     var ex = new TestTerminatedException(TestOutcome.Skipped);
     var deserializedEx = Assert.BinarySerializeThenDeserialize(ex);
     Assert.AreEqual(TestOutcome.Skipped, deserializedEx.Outcome);
 }
 public void OutcomeIsAsSpecifiedInConstructor()
 {
     var ex = new TestTerminatedException(TestOutcome.Error);
     Assert.AreEqual(TestOutcome.Error, ex.Outcome);
 }