File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
src/NUnitFramework/framework/Constraints Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -65,8 +65,14 @@ static MsgUtils()
65
65
// Initialize formatter to default for values of indeterminate type.
66
66
DefaultValueFormatter = FormatValueWithoutThrowing ;
67
67
68
+ AddFormatter ( next => val => TryFormatTuple ( val , TypeHelper . IsTuple , GetValueFromTuple ) ?? next ( val ) ) ;
69
+
68
70
AddFormatter ( next => val => val is ValueType ? string . Format ( Fmt_ValueType , val ) : next ( val ) ) ;
69
71
72
+ AddFormatter ( next => val => TryFormatKeyValuePair ( val ) ?? next ( val ) ) ;
73
+
74
+ AddFormatter ( next => val => TryFormatTuple ( val , TypeHelper . IsValueTuple , GetValueFromValueTuple ) ?? next ( val ) ) ;
75
+
70
76
AddFormatter ( next => val => val is DateTime value ? FormatDateTime ( value ) : next ( val ) ) ;
71
77
72
78
AddFormatter ( next => val => val is DateTimeOffset value ? FormatDateTimeOffset ( value ) : next ( val ) ) ;
@@ -86,12 +92,6 @@ static MsgUtils()
86
92
AddFormatter ( next => val => val is DictionaryEntry de ? FormatKeyValuePair ( de . Key , de . Value ) : next ( val ) ) ;
87
93
88
94
AddFormatter ( next => val => val is Array valArray ? FormatArray ( valArray ) : next ( val ) ) ;
89
-
90
- AddFormatter ( next => val => TryFormatKeyValuePair ( val ) ?? next ( val ) ) ;
91
-
92
- AddFormatter ( next => val => TryFormatTuple ( val , TypeHelper . IsTuple , GetValueFromTuple ) ?? next ( val ) ) ;
93
-
94
- AddFormatter ( next => val => TryFormatTuple ( val , TypeHelper . IsValueTuple , GetValueFromValueTuple ) ?? next ( val ) ) ;
95
95
}
96
96
97
97
#if NETFRAMEWORK
You can’t perform that action at this time.
0 commit comments