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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

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

IsEmpty<br />

Returns true if the set has no elements. Returns false otherwise.<br />

etc. . . .<br />

Fields<br />

EmptySet<br />

(Static.) The empty set of sort T.<br />

Remarks<br />

Set is an immutable type. Add/remove operations return a new set. Comparison for<br />

equality uses Object.Equals.<br />

Formally, this data type denotes a pair (elementType, untyped set of values),<br />

where the element type is given by the type parameter T. As a consequence, sets are<br />

equal only if they are of the same sort (element type) and contain the same elements.<br />

For example, Set.EmptySet != Set.EmptySet.<br />

A.2.3 Map<br />

Map<br />

A finite mapping of keys to values. This type is immutable and uses structural<br />

equality. Add/remove operations return a new map.<br />

Syntax<br />

public sealed class Map : CollectionValue<br />

Constructors<br />

The following entries describe some of the constructors of this type. Several more<br />

are described in the library documentation.<br />

Map()<br />

Default constructor. The static field Map.EmptyMap is preferred and should<br />

be used instead of this constructor.<br />

Map(T,S)<br />

Creates a map from the key and value given as arguments.<br />

Map(IEnumerable)<br />

Creates a map from pairs of keys and values.<br />

Map(Pair[])<br />

Creates a map with a params array of key/value pairs.<br />

etc. . . .<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!