27.07.2013 Views

2 Why We Need Model-Based Testing

2 Why We Need Model-Based Testing

2 Why We Need Model-Based Testing

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

294 <strong>Model</strong>ing Library Reference<br />

Syntax<br />

public sealed class Set : CollectionValue<br />

Constructors<br />

Set()<br />

Constructs an empty set of type T. The static field Set.EmptySet should be<br />

used instead of this constructor.<br />

Set(IEnumerable)<br />

Constructs a set containing all enumerated elements.<br />

Set(T[])<br />

Constructs a set from the elements given in the argument list.<br />

Methods<br />

The following entries describe some of the methods of this type. Many more are<br />

described in the library documentation.<br />

Add(T)<br />

Returns a set with all of the elements of the current set, plus the value given as<br />

an argument.<br />

BigIntersect(Set)<br />

(Static method.) Distributed intersection. Returns the set that is the intersection<br />

of all the sets contained in the argument value; that is, the result contains the<br />

elements that are shared among all of the sets.<br />

BigUnion(Set)<br />

(Static method.) Distributed set union. Returns a set containing all of the elements<br />

of each set contained in the argument value.<br />

Choose()<br />

Selects an arbitrary value from the current set using internal choice.<br />

Contains(T)<br />

Tests whether the given element is found in the set.<br />

Difference(Set)<br />

Set difference. Same as operator -.<br />

Exists(Predicate)<br />

Existential quantification. Returns true if the predicate holds for at least one<br />

element of the current set.<br />

ExistsOne(Predicate)<br />

Unique quantification. Returns true if the predicate holds for exactly one element<br />

of the set, false otherwise.<br />

more free ebooks download links at:<br />

http://www.ebook-x.com

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!