public AddGiven ( string text, |
||
text | string | |
method | ||
return | void |
void ProcessGiven() { //execute all given items found. _fields.Where(fieldInfo => fieldInfo.FieldType == typeof(given)) .Select(fieldInfo => new { Delegate = (given)fieldInfo.GetValue(_testClass), Field = fieldInfo }).ToList() .ForEach(x => { x.Delegate.Invoke(); _testStateManager.AddGiven(x.Field.Name, x.Delegate); }); }