public Transform ( System.Management.Automation.EngineIntrinsics engineIntrinsics, object inputData ) : object | ||
engineIntrinsics | System.Management.Automation.EngineIntrinsics | Provides access to the APIs for managing the transformation context. |
inputData | object | The parameter argument that is to be transformed. |
리턴 | object |
public void TransformUnsupportedLoggingValue() { var attr = new LoggingPoliciesAttribute(); Assert.AreEqual <int>(0, (int)attr.Transform(null, 0)); }
public void TransformStringLoggingValue() { var attr = new LoggingPoliciesAttribute(); Assert.AreEqual <LoggingPolicies>(Default, (LoggingPolicies)attr.Transform(null, "oiceWARMUP")); }
public void TransformNullLoggingValue() { var attr = new LoggingPoliciesAttribute(); Assert.IsNull(attr.Transform(null, null)); }
public void TransformUnsupportedLoggingValue() { var attr = new LoggingPoliciesAttribute(); Assert.AreEqual<int>(0, (int)attr.Transform(null, 0)); }
public void TransformStringLoggingValue() { var attr = new LoggingPoliciesAttribute(); Assert.AreEqual<LoggingPolicies>(Default, (LoggingPolicies)attr.Transform(null, "oiceWARMUP")); }
public void TransformNullLoggingValue() { var attr = new LoggingPoliciesAttribute(); Assert.IsNull(attr.Transform(null, null)); }