Skip to content

Commit c4ab4d4

Browse files
committed
Updating tests for new method of serializing cmdlets
1 parent e498746 commit c4ab4d4

File tree

3 files changed

+109
-157
lines changed

3 files changed

+109
-157
lines changed

tools/StaticAnalysis/BreakingChangeAnalyzer/TypeMetadata.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,9 @@ public TypeMetadata(Type inputType)
126126
}
127127

128128
// Add the property to the dictionary
129-
if (!_properties.ContainsKey(property.PropertyType.ToString()))
129+
if (!_properties.ContainsKey(property.Name.ToString()))
130130
{
131-
_properties.Add(property.PropertyType.ToString(), propertyType.ToString());
131+
_properties.Add(property.Name, propertyType.ToString());
132132
}
133133
}
134134
}

0 commit comments

Comments
 (0)