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

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

            throw JestFailedException.GetInstance(expectedInput, actualInput);
        }
Exemple #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);
 }