Ejemplo n.º 1
0
        public static bool IsEqual <T>(T expectedInput, T actualInput)
        {
            if (expectedInput.Equals(actualInput))
            {
                return(true);
            }

            throw JestFailedException.GetInstance(expectedInput, actualInput);
        }
Ejemplo n.º 2
0
        public static bool IsEqual(char expectedInput, char actualInput)
        {
            if (expectedInput == actualInput)
            {
                return(true);
            }

            throw JestFailedException.GetInstance(expectedInput, actualInput);
        }
Ejemplo n.º 3
0
 public static bool ExpectException(Type expectedExceptionType, Action methodToExecute)
 {
     try
     {
         methodToExecute();
     }
     catch (Exception ex)
     {
         if (ex.GetType() == expectedExceptionType)
         {
             return(true);
         }
     }
     throw JestFailedException.GetInstance(expectedExceptionType);
 }