nunit - ExpectedException in jUnit? -


Is NUINt's expected expiation or estront equivalent.Thank you & lt;> jUnit?

Junior 4:

  @Test (expected = org.dom4j .DocumentException.class) should be zero () {getFile (zero); }  

Junior 3:

  zero test styleTroxation (try {try {getFile (null); Failed ("expected exception document exception"); } Hold (DocumentException E) {}}  

Comments

Popular posts from this blog

c# - PInvoke of NetUserAdd returns 24 -

NHibernate Passing Session to the Repository -