コード例 #1
0
 public void IsSatisfiedByCollectionRequestReturnsCorrectResult(Type request)
 {
     // Fixture setup
     var sut = new HashSetSpecification();
     // Exercise system
     var result = sut.IsSatisfiedBy(request);
     // Verify outcome
     Assert.True(result);
     // Teardown
 }
コード例 #2
0
 public void IsSatisfiedByNonHashSetRequestReturnsCorrectResult(object request)
 {
     // Fixture setup
     var sut = new HashSetSpecification();
     // Exercise system
     var result = sut.IsSatisfiedBy(request);
     // Verify outcome
     Assert.False(result);
     // Teardown
 }