Наследование: System.Management.Automation.ArgumentTransformationAttribute
Пример #1
0
        public void TransformUnsupportedLoggingValue()
        {
            var attr = new LoggingPoliciesAttribute();

            Assert.AreEqual <int>(0, (int)attr.Transform(null, 0));
        }
Пример #2
0
        public void TransformStringLoggingValue()
        {
            var attr = new LoggingPoliciesAttribute();

            Assert.AreEqual <LoggingPolicies>(Default, (LoggingPolicies)attr.Transform(null, "oiceWARMUP"));
        }
Пример #3
0
        public void TransformNullLoggingValue()
        {
            var attr = new LoggingPoliciesAttribute();

            Assert.IsNull(attr.Transform(null, null));
        }
Пример #4
0
 public void TransformUnsupportedLoggingValue()
 {
     var attr = new LoggingPoliciesAttribute();
     Assert.AreEqual<int>(0, (int)attr.Transform(null, 0));
 }
Пример #5
0
 public void TransformStringLoggingValue()
 {
     var attr = new LoggingPoliciesAttribute();
     Assert.AreEqual<LoggingPolicies>(Default, (LoggingPolicies)attr.Transform(null, "oiceWARMUP"));
 }
Пример #6
0
 public void TransformNullLoggingValue()
 {
     var attr = new LoggingPoliciesAttribute();
     Assert.IsNull(attr.Transform(null, null));
 }