C# 클래스 PclUnit.Constraints.Pieces.CollectionTally

CollectionTally counts (tallies) the number of occurences of each object in one or more enumerations.
파일 보기 프로젝트 열기: jbtule/PclUnit 1 사용 예제들

공개 메소드들

메소드 설명
CollectionTally ( NUnitEqualityComparer comparer, IEnumerable c ) : System.Collections

Construct a CollectionTally object from a comparer and a collection

TryRemove ( IEnumerable c ) : bool

Try to remove a set of objects from the tally

TryRemove ( object o ) : bool

Try to remove an object from the tally

비공개 메소드들

메소드 설명
ItemsEqual ( object expected, object actual ) : bool

메소드 상세

CollectionTally() 공개 메소드

Construct a CollectionTally object from a comparer and a collection
public CollectionTally ( NUnitEqualityComparer comparer, IEnumerable c ) : System.Collections
comparer NUnitEqualityComparer
c IEnumerable
리턴 System.Collections

TryRemove() 공개 메소드

Try to remove a set of objects from the tally
public TryRemove ( IEnumerable c ) : bool
c IEnumerable The objects to remove
리턴 bool

TryRemove() 공개 메소드

Try to remove an object from the tally
public TryRemove ( object o ) : bool
o object The object to remove
리턴 bool