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.

Appendices 299<br />

Syntax<br />

public sealed class Sequence : CollectionValue<br />

Constructors<br />

Sequence()<br />

Constructs an empty sequence. The static field Sequence.EmptySequence is<br />

preferred instead of this constructor.<br />

Sequence(IEnumerable)<br />

Constructs a sequence from the elements in a collection.<br />

Sequence(T[])<br />

Constructs a sequence from params arguments.<br />

Methods<br />

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

described in the library documentation.<br />

AddFirst(T)<br />

Returns a sequence whose Head is the element given as the argument and whose<br />

Tail equals the current sequence.<br />

AddLast(T)<br />

Returns a sequence whose Front equals the current sequence and whose Last is<br />

the element given as the argument.<br />

BigConcatenate(IEnumerable)<br />

(Static method.) Distributed concatenation. Returns the sequence formed by<br />

concatenating each sequence from a collection of sequences in turn. Returns the<br />

empty sequence if the collection given as the argument is empty.<br />

Concatentate(Sequence)<br />

Sequence concatenation. Returns the sequence consisting of the elements of<br />

the current sequence followed by the elements of the sequence given as the<br />

argument. This is the same as the C# infix operator +.<br />

Contains(T)<br />

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

IndexOf(T)<br />

Returns the zero-based index of the first occurrence of the given element in the<br />

sequence, or -1 if it doesn’t occur.<br />

IsPrefixOf(Sequence)<br />

Returns true if the elements of the current sequence are the first elements of the<br />

sequence given as the argument, and 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!