Example #1
0
        public void ThrowSelect()
        {
            var set = Enumerate.Throw <int>(new InvalidOperationException("Epic Fail!")).Select(t => t)();

            try
            {
                var v = set().Value;
                Assert.Fail("No exception thrown");
            }
            catch (InvalidOperationException)
            {
                // Expected
            }
        }