public static bool IsEqual <T>(T expectedInput, T actualInput) { if (expectedInput.Equals(actualInput)) { return(true); } throw JestFailedException.GetInstance(expectedInput, actualInput); }
public static bool IsEqual(char expectedInput, char actualInput) { if (expectedInput == actualInput) { return(true); } throw JestFailedException.GetInstance(expectedInput, actualInput); }
public static bool ExpectException(Type expectedExceptionType, Action methodToExecute) { try { methodToExecute(); } catch (Exception ex) { if (ex.GetType() == expectedExceptionType) { return(true); } } throw JestFailedException.GetInstance(expectedExceptionType); }