상속: System.Management.Automation.ArgumentTransformationAttribute
예제 #1
0
        public void TransformUnsupportedReinstallModeValue()
        {
            var attr = new ReinstallModeAttribute();

            Assert.AreEqual <int>(0, (int)attr.Transform(null, 0));
        }
예제 #2
0
        public void TransformStringReinstallModeValue()
        {
            var attr = new ReinstallModeAttribute();

            Assert.AreEqual <ReinstallModes>(Default, (ReinstallModes)attr.Transform(null, "omUS"));
        }
예제 #3
0
        public void TransformNullReinstallModeValue()
        {
            var attr = new ReinstallModeAttribute();

            Assert.IsNull(attr.Transform(null, null));
        }
예제 #4
0
 public void TransformUnsupportedReinstallModeValue()
 {
     var attr = new ReinstallModeAttribute();
     Assert.AreEqual<int>(0, (int)attr.Transform(null, 0));
 }
예제 #5
0
 public void TransformStringReinstallModeValue()
 {
     var attr = new ReinstallModeAttribute();
     Assert.AreEqual<ReinstallModes>(Default, (ReinstallModes)attr.Transform(null, "omUS"));
 }
예제 #6
0
 public void TransformNullReinstallModeValue()
 {
     var attr = new ReinstallModeAttribute();
     Assert.IsNull(attr.Transform(null, null));
 }