query: Assert an error is thrown using the new to execute a constructor function
positive_passages.docid: 38832
positive_passages.text: Mocha / Chai expect.to.throw not catching thrown errors
negative_passages.docid: 113214
negative_passages.text: When to throw an exception?
negative_passages.docid: 93296
negative_passages.text: How to call a different constructor conditionally in Java?
negative_passages.docid: 95621
negative_passages.text: Why do constructors not return values?
negative_passages.docid: 136751
negative_passages.text: How to add test coverage to a private constructor?
negative_passages.docid: 155356
negative_passages.text: Constructor not defined Error for test case
negative_passages.docid: 40997
negative_passages.text: JavaScript difference between function and new function
negative_passages.docid: 108378
negative_passages.text: How to call a constructor on an already allocated memory?
negative_passages.docid: 18212
negative_passages.text: constructor not accepting my information
negative_passages.docid: 106315
negative_passages.text: Is it useful to test the return of "new" in C++?
negative_passages.docid: 50076
negative_passages.text: How to test that no exception is thrown?
negative_passages.docid: 75987
negative_passages.text: How do you use the non-default constructor for a member?
negative_passages.docid: 84481
negative_passages.text: Pass parameters to constructor when using System.Type.newInstance()
negative_passages.docid: 144946
negative_passages.text: What does the Java assert keyword do, and when should it be used?
negative_passages.docid: 150306
negative_passages.text: Constructor not defined error in test code
negative_passages.docid: 27422
negative_passages.text: "This constructor takes no arguments" error in __init__
negative_passages.docid: 82116
negative_passages.text: Should I be using object literals or constructor functions?