public void CannotFindNodeExceptionHelpMessage()
        {
            var input1  = new InputPipe <long>("value1");
            var subject = new NodeMetadata.CannotFindNodeException(input1);

            Approvals.VerifyException(subject);
        }
        public void LambdaWithProcessFunction_ShouldThrow()
        {
            var input     = new InputPipe <int>("input");
            var exception = ExceptionUtilities.GetException(() => input.ProcessFunction(p => p.ToString()));

            Approvals.VerifyException(exception);
        }
Ejemplo n.º 3
0
        public void VerifyException()
        {
            Action wrapper = () => throw new Exception("The Message");
            var    e       = ExceptionUtilities.GetException(wrapper);

            Approvals.VerifyException(e);
        }
        public void TestMissingDots()
        {
            var e = ExceptionUtilities.GetException(() => GenericDiffReporter.RegisterTextFileTypes(".exe", "txt", ".error", "asp"));

            Approvals.VerifyException(e);
        }