Inheritance: System.Management.Automation.ArgumentTransformationAttribute
        public void TransformUnsupportedReinstallModeValue()
        {
            var attr = new ReinstallModeAttribute();

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

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

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