Click or drag to resize
SpreadsheetFieldValue Class
Helps to look up the value associated with a field within a spreadsheet.
Inheritance Hierarchy
SystemObject
  Test.FrameworkSpreadsheetFieldValue

Namespace: Test.Framework
Assembly: Test.Framework (in Test.Framework.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public class SpreadsheetFieldValue

The SpreadsheetFieldValue type exposes the following members.

Constructors
  NameDescription
Public methodSpreadsheetFieldValue
Creates a new object.
Top
Properties
  NameDescription
Public propertyFieldPrefix
Gets or sets the prefix for field name columns - defaults to 'Field'.
Public propertyMaxFields
Gets or sets the number of columns to search across for field names and associated values.
Public propertyValuePrefix
Gets or sets the prefix for value columns - defaults to 'Value'.
Public propertyWorksheet
Gets or sets the worksheet that field names and values will be extracted from.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetByte
Returns the value for the field passed across or null if the field could not be found.
Public methodGetBytes
Returns the value for the field passed across or null if the field could not be found.
Public methodGetEnumT
Returns the value for the field passed across or null if the field could not be found.
Public methodGetEString
Returns the value for the field passed across or null if the field could not be found.
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetNBool
Returns the value for the field passed across or null if the field could not be found.
Public methodGetNByte
Returns the value for the field passed across or null if the field could not be found.
Public methodGetNDouble
Returns the value for the field passed across or null if the field could not be found.
Public methodGetNFloat
Returns the value for the field passed across or null if the field could not be found.
Public methodGetNInt
Returns the value for the field passed across or null if the field could not be found.
Public methodGetNLong
Returns the value for the field passed across or null if the field could not be found.
Public methodGetNShort
Returns the value for the field passed across or null if the field could not be found.
Public methodGetString
Returns the value for the field passed across or null if the field could not be found.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Remarks
For some data-driven tests it can be useful to have a number of columns in the spreadsheet named 'Field1', 'Field2' ... 'Fieldn' which contain the name of a field and an associated set of columns 'Value1', 'Value2' ... 'Valuen' which contain the expected value associated with the field. This class wraps up the code necessary to find an associated value for a given field name.
See Also