Beispiel #1
0
        public void Fail_ShouldThrowInternalErrorException()
        {
            var expectations = Expectations.GetExceptionMessages();

            foreach (var e in expectations)
            {
                Throws(() =>
                {
                    Assumes.Fail(e);
                });
            }
        }
Beispiel #2
0
        private static Exception CreateInternalErrorException(string message)
        {
            Exception exception = null;

            try
            {
                Assumes.Fail(message);
            }
            catch (Exception ex)
            {
                exception = ex;
            }

            Assert.IsNotNull(exception);
            return(exception);
        }