Exemplo n.º 1
0
 public void DoesNotContain_should_pass()
 {
     // Act / Assert
     EmptyCollection.Invoking(value => value.DoesNotContain(Item))
     .ShouldNotThrow();
 }
Exemplo n.º 2
0
 public void HasCountGreaterThan_should_fail()
 {
     EmptyCollection.Invoking(value => value.HasCountGreaterThan(1))
     .ShouldThrow <ArgumentException>();
 }
Exemplo n.º 3
0
 public void Contains_should_fail()
 {
     // Act / Assert
     EmptyCollection.Invoking(value => value.Contains(Item))
     .ShouldThrow <ArgumentException>();
 }
Exemplo n.º 4
0
 public void HasCountGreaterThanOrEqualTo_should_fail()
 {
     EmptyCollection.Invoking(value => value.HasCountGreaterThanOrEqualTo(int.MaxValue))
     .ShouldThrow <ArgumentException>();
 }
Exemplo n.º 5
0
 public void HasCountLessThan_should_pass()
 {
     EmptyCollection.Invoking(value => value.HasCountLessThan(1))
     .ShouldNotThrow();
 }
Exemplo n.º 6
0
 public void IsNotEmpty_should_fail()
 {
     // Act / Assert
     EmptyCollection.Invoking(value => value.IsNotEmpty())
     .ShouldThrow <ArgumentException>();
 }
Exemplo n.º 7
0
 public void IsEmpty_should_pass()
 {
     // Act / Assert
     EmptyCollection.Invoking(value => value.IsEmpty())
     .ShouldNotThrow();
 }
Exemplo n.º 8
0
 public void HasCountOf_should_fail()
 {
     // Act / Assert
     EmptyCollection.Invoking(value => value.HasCountOf(1))
     .ShouldThrow <ArgumentException>();
 }
Exemplo n.º 9
0
 public void DoesNotHaveCountOf_should_pass()
 {
     // Act / Assert
     EmptyCollection.Invoking(value => value.DoesNotHaveCountOf(1))
     .ShouldNotThrow();
 }
Exemplo n.º 10
0
 public void DoesNotHaveCountOf_should_fail()
 {
     // Act / Assert
     EmptyCollection.Invoking(value => value.DoesNotHaveCountOf(0))
     .ShouldThrow <ArgumentException>();
 }