@Test public void should_verify_that_actual_contains_sequence() { assertions.containsSequence('a', 'b'); verify(arrays).assertContainsSequence(assertions.info, assertions.actual, array('a', 'b')); }
@Test public void should_return_this() { CharArrayAssert returned = assertions.containsSequence('a'); assertSame(assertions, returned); }
@Before public void setUp() { arrays = mock(CharArrays.class); assertions = new CharArrayAssert(emptyArray()); assertions.arrays = arrays; }