MemberTestInfo<TMemberInfo> Struct

Summary

A System.Reflection.MemberInfo paired with an instance against which to test.
Namespace
Cake.Testing
Base Types
  • object
  • ValueType
graph BT Type-->Base0["ValueType"] Base0-->Base1["object"] Type["MemberTestInfo<TMemberInfo>"] class Type type-node

Syntax

public struct MemberTestInfo<TMemberInfo> : ValueType where TMemberInfo : MemberInfo

Type Parameters

Name Description
TMemberInfo The type of System.Reflection.MemberInfo that will be tested.

Constructors

Name Summary
MemberTestInfo(object, TMemberInfo) Initializes a new instance of the MemberTestInfo<TMemberInfo> struct.

Properties

Name Value Summary
Instance object
Gets the instance against which to test the Member.
Member TMemberInfo
Gets the member to test.

Methods

Name Value Summary
ToString() string
Returns the fully qualified type name of this instance.

Extension Methods

Name Value Summary
Dump<MemberTestInfo<TMemberInfo>>() string
Get a basic string representation of specified object.
Requires the Cake.Incubator addin
IsIn<MemberTestInfo<TMemberInfo>>(MemberTestInfo<TMemberInfo>[]) bool
Checks if the source is contained in a list
Requires the Cake.Incubator addin
ThrowIfNull<MemberTestInfo<TMemberInfo>>(string, string) T
Throws a System.ArgumentNullException with a specific message if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ThrowIfNull<MemberTestInfo<TMemberInfo>>(string) T
Throws a System.ArgumentNullException if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ToDictionary() IDictionary<string, object>
Requires the Cake.DeployParams addin