Thrower.cs 587 B

12345678910111213141516171819202122232425
  1. namespace Jint.Tests.Runtime.Domain
  2. {
  3. public class Thrower
  4. {
  5. public void ThrowArgumentNullException()
  6. {
  7. throw new ArgumentNullException();
  8. }
  9. public void ThrowExceptionWithMessage(string message)
  10. {
  11. throw new Exception(message);
  12. }
  13. public void ThrowNotSupportedException()
  14. {
  15. throw new NotSupportedException();
  16. }
  17. public void ThrowNotSupportedExceptionWithMessage(string message)
  18. {
  19. throw new NotSupportedException(message);
  20. }
  21. }
  22. }