Given.Common.TestStateManager.AddTearDown C# (CSharp) Method

AddTearDown() public method

public AddTearDown ( after teardownMethod ) : void
teardownMethod after
return void
        public void AddTearDown(after teardownMethod)
        {
            _teardownMethods.Add(teardownMethod);
        }

Usage Example

Esempio n. 1
0
 void ProcessAfter()
 {
     _fields
     .Where(fieldInfo => fieldInfo.FieldType == typeof(after)).ToList()
     .ForEach(x => _testStateManager.AddTearDown((after)x.GetValue(_testClass)));
 }