// Story 2 - Asserting inverse equality - Part One @Test public void shouldReturnTrueForInverse() throws Exception { CustomAssert customAssert = new CustomAssert(); CustomIs inverseCustomIs = CustomIs.not(); assertTrue(inverseCustomIs.isInverse()); }
// 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 public void shouldNotThrowException() throws Exception { CustomAssert customAssert = new CustomAssert(); customAssert.that("", CustomIs.equalTo("Hello")); }