diff options
author | Marek Safar <marek.safar@gmail.com> | 2014-08-25 15:14:08 +0400 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2014-08-25 15:14:08 +0400 |
commit | 0c0627c3c7c19a9803f719be49233a52f02ddb3a (patch) | |
tree | 969239b4c9ed5c8dead1f05c59e42d3c3f61e65a | |
parent | d858f5f27fa8b10d734ccce7ffba631b995093e5 (diff) |
Alwats compare GuidAttribute using upper case
-rw-r--r-- | gui-compare/CompareContext.cs | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/gui-compare/CompareContext.cs b/gui-compare/CompareContext.cs index b171ef84..733dc15d 100644 --- a/gui-compare/CompareContext.cs +++ b/gui-compare/CompareContext.cs @@ -442,15 +442,17 @@ namespace GuiCompare { } var target_value = actualAttribute.Properties[entry.Key]; - + var entry_value = entry.Value; switch (referenceAttribute.Name) { case "System.Runtime.CompilerServices.TypeForwardedFromAttribute": if (entry.Key == "AssemblyFullName") target_value = target_value.Replace ("neutral", "Neutral"); break; case "System.Runtime.InteropServices.GuidAttribute": - if (entry.Key == "Value") + if (entry.Key == "Value") { target_value = target_value.ToUpperInvariant (); + entry_value = entry_value.ToUpperInvariant (); + } break; case "System.ObsoleteAttribute": if (entry.Key == "Message") @@ -459,8 +461,8 @@ namespace GuiCompare { break; } - if (target_value != entry.Value) { - parent.AddError (String.Format ("Expected value `{0}' for attribute property `{1}' but found `{2}'", entry.Value, entry.Key, target_value)); + if (target_value != entry_value) { + parent.AddError (String.Format ("Expected value `{0}' for attribute property `{1}' but found `{2}'", entry_value, entry.Key, target_value)); parent.Status = ComparisonStatus.Error; } } |