@Test public void shouldNotThrowException() throws Exception { CustomAssert customAssert = new CustomAssert(); customAssert.that("", CustomIs.equalTo("Hello")); }
// Story 2 - Asserting inverse equality - Part two @Test public void shouldReturnTrueForInverseEqualitye() throws Exception { CustomAssert customAssert = new CustomAssert(); CustomIs customIs = CustomIs.not().equalTo("Hello"); assertTrue(customAssert.that("Hellsdso", customIs)); }
@Test(expected = Exception.class) public void shouldThrowException() throws Exception { CustomAssert customAssert = new CustomAssert(); customAssert.that("", null); }