public void TestProjectConversion()
 {
     TestType project = new TestType { Name = s_testString };
     var attribute = new PropertyByTypeTransformationAttribute { Property = "name", TypeToTransform = typeof(TestType) };
     object result = attribute.Transform(null, project);
     Assert.AreEqual(s_testString, result);
 }
 public void TestDeepPSObjectConversion()
 {
     TestType project = new TestType { Name = s_testString };
     PSObject obj = new PSObject(project);
     var attribute = new PropertyByTypeTransformationAttribute { Property = "name", TypeToTransform = typeof(TestType) };
     object result = attribute.Transform(null, new PSObject(obj));
     Assert.AreEqual(result, s_testString);
 }