Inheritance: System.Management.Automation.ArgumentTransformationAttribute
Esempio n. 1
0
        public void TransformUnsupportedLoggingValue()
        {
            var attr = new LoggingPoliciesAttribute();

            Assert.AreEqual <int>(0, (int)attr.Transform(null, 0));
        }
Esempio n. 2
0
        public void TransformStringLoggingValue()
        {
            var attr = new LoggingPoliciesAttribute();

            Assert.AreEqual <LoggingPolicies>(Default, (LoggingPolicies)attr.Transform(null, "oiceWARMUP"));
        }
Esempio n. 3
0
        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));
 }