@@ -60,8 +60,8 @@ public void SaveConfigWorks()
60
60
var config = GetDefaultConfig ( ) ;
61
61
viewModel . UpdateConfig ( config ) ;
62
62
63
- Assert . IsTrue ( config . UserSettings . CodeInspectionSettings . CodeInspections . SequenceEqual (
64
- viewModel . InspectionSettings . SourceCollection . OfType < CodeInspectionSetting > ( ) ) ) ;
63
+ Assert . IsTrue ( config . UserSettings . CodeInspectionSettings . CodeInspections . OrderBy ( setting => setting . InspectionType ) . SequenceEqual (
64
+ viewModel . InspectionSettings . SourceCollection . OfType < CodeInspectionSetting > ( ) . OrderBy ( setting => setting . InspectionType ) ) ) ;
65
65
}
66
66
67
67
[ Category ( "Settings" ) ]
@@ -73,8 +73,8 @@ public void SetDefaultsWorks()
73
73
var defaultConfig = GetDefaultConfig ( ) ;
74
74
viewModel . SetToDefaults ( defaultConfig ) ;
75
75
76
- Assert . IsTrue ( defaultConfig . UserSettings . CodeInspectionSettings . CodeInspections . SequenceEqual (
77
- viewModel . InspectionSettings . SourceCollection . OfType < CodeInspectionSetting > ( ) ) ) ;
76
+ Assert . IsTrue ( defaultConfig . UserSettings . CodeInspectionSettings . CodeInspections . OrderBy ( setting => setting . InspectionType ) . SequenceEqual (
77
+ viewModel . InspectionSettings . SourceCollection . OfType < CodeInspectionSetting > ( ) . OrderBy ( setting => setting . InspectionType ) ) ) ;
78
78
}
79
79
80
80
[ Category ( "Settings" ) ]
@@ -84,8 +84,8 @@ public void InspectionsAreSetInCtor()
84
84
var defaultConfig = GetDefaultConfig ( ) ;
85
85
var viewModel = new InspectionSettingsViewModel ( defaultConfig ) ;
86
86
87
- Assert . IsTrue ( defaultConfig . UserSettings . CodeInspectionSettings . CodeInspections . SequenceEqual (
88
- viewModel . InspectionSettings . SourceCollection . OfType < CodeInspectionSetting > ( ) ) ) ;
87
+ Assert . IsTrue ( defaultConfig . UserSettings . CodeInspectionSettings . CodeInspections . OrderBy ( setting => setting . InspectionType ) . SequenceEqual (
88
+ viewModel . InspectionSettings . SourceCollection . OfType < CodeInspectionSetting > ( ) . OrderBy ( setting => setting . InspectionType ) ) ) ;
89
89
}
90
90
91
91
[ Category ( "Settings" ) ]
@@ -102,8 +102,8 @@ public void InspectionSeveritiesAreUpdated()
102
102
updatedConfig . UserSettings . CodeInspectionSettings . CodeInspections . First ( ) . Severity =
103
103
GetNondefaultConfig ( ) . UserSettings . CodeInspectionSettings . CodeInspections . First ( ) . Severity ;
104
104
105
- Assert . IsTrue ( updatedConfig . UserSettings . CodeInspectionSettings . CodeInspections . SequenceEqual (
106
- viewModel . InspectionSettings . SourceCollection . OfType < CodeInspectionSetting > ( ) ) ) ;
105
+ Assert . IsTrue ( updatedConfig . UserSettings . CodeInspectionSettings . CodeInspections . OrderBy ( setting => setting . InspectionType ) . SequenceEqual (
106
+ viewModel . InspectionSettings . SourceCollection . OfType < CodeInspectionSetting > ( ) . OrderBy ( setting => setting . InspectionType ) ) ) ;
107
107
}
108
108
}
109
109
}
0 commit comments