package com.jexpect;

import java.util.Collections;

import org.junit.Test;

import static com.jexpect.Expect.expect;
import static com.jexpect.util.DataRepository.NON_EMPTY_COLLECTION;
import static com.jexpect.util.DataRepository.NULL_COLLECTION;
import static org.junit.Assert.assertNotNull;

public class ToBeCollectionNotTest {

  @Test
  public void Expect_Should_Not_Throw_Exception() throws Exception {
    expect(NON_EMPTY_COLLECTION).not().toBeEmpty();
    expect(NULL_COLLECTION).not().toContain(10);
    expect(NULL_COLLECTION).not().toContain(null);
    expect(Collections.<Integer>emptyList()).not().toContain(10);
    assertNotNull(expect(NULL_COLLECTION).not().not());
  }
}

@@ -681,11 +681,583 @@
 ());%0A  %7D
+%0A%0A  @Test(expected = IllegalArgumentException.class)%0A  public void Given_Nonempty_Collection_When_Expect_To_Contain_Item_Should_Fail() %7B%0A    expect(NON_EMPTY_COLLECTION).toContain(4);%0A  %7D%0A%0A  @Test(expected = IllegalArgumentException.class)%0A  public void Given_Empty_Collection_When_Expect_To_Contain_Item_Then_It_Should_Fail() %7B%0A    expect(Collections.emptyList()).toContain(5);%0A  %7D%0A%0A  @Test(expected = IllegalArgumentException.class)%0A  public void Given_Nonempty_Collection_When_Expect_To_Be_Empty_Then_It_Should_Fail() %7B%0A    expect(NON_EMPTY_COLLECTION).toBeEmpty();%0A  %7D
 %0A%7D%0A

add more tests