Beispiel #1
0
        public void OfType_CanConvertObservations()
        {
            IOutcome <object> outcome = Outcome.Success("Hello, World!");

            var converted = outcome.OfType <string>();

            Assert.IsTrue(converted.WasSuccessful);
            Assert.IsTrue(converted.Observations.SequenceEqual(new[] { "Hello, World!" }));
        }