Transform() public method

Transforms a string in the short form of REINSTALLMODE to a Microsoft.Deployment.WindowsInstaller.ReinstallModes enumeration.
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.
return object
        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));
 }