@@ -85,11 +85,10 @@ public void ListOf1ShouldEqualListOf1()
85
85
"Summary" ,
86
86
"Description" ,
87
87
commitTime , commitTime ,
88
- new List < GitStatusEntry > ( new [ ]
88
+ new List < GitStatusEntry >
89
89
{
90
- new GitStatusEntry ( "SomePath" , "SomeFullPath" , "SomeProjectPath" , GitFileStatus . Added ,
91
- "SomeOriginalPath" ) ,
92
- } ) ,
90
+ new GitStatusEntry ( "SomePath" , "SomeFullPath" , "SomeProjectPath" , GitFileStatus . Added , "SomeOriginalPath" ) ,
91
+ } ,
93
92
"MergeA" , "MergeB" )
94
93
} ;
95
94
@@ -125,11 +124,10 @@ public void ListOf2ShouldEqualListOf2()
125
124
"AuthorName" , "AuthorEmail" ,
126
125
"Summary" , "Description" ,
127
126
commitTime , commitTime ,
128
- new List < GitStatusEntry > ( new [ ]
127
+ new List < GitStatusEntry >
129
128
{
130
- new GitStatusEntry ( "SomePath" , "SomeFullPath" , "SomeProjectPath" , GitFileStatus . Added ,
131
- "SomeOriginalPath" ) ,
132
- } ) ,
129
+ new GitStatusEntry ( "SomePath" , "SomeFullPath" , "SomeProjectPath" , GitFileStatus . Added , "SomeOriginalPath" ) ,
130
+ } ,
133
131
"MergeA" , "MergeB" ) ,
134
132
new GitLogEntry ( "`CommitID" ,
135
133
"`AuthorName" , "`AuthorEmail" ,
@@ -143,28 +141,27 @@ public void ListOf2ShouldEqualListOf2()
143
141
144
142
var otherEntries = new [ ]
145
143
{
146
- new GitLogEntry ( "`CommitID" ,
147
- "`AuthorName" , "`AuthorEmail" ,
148
- "`AuthorName" , "`AuthorEmail" ,
149
- "`Summary" ,
150
- "`Description" ,
151
- commitTime , commitTime ,
152
- new List < GitStatusEntry > ( new [ ]
153
- {
154
- new GitStatusEntry ( "SomePath" , "SomeFullPath" , "SomeProjectPath" , GitFileStatus . Added ,
155
- "SomeOriginalPath" ) ,
156
- } ) ,
157
- "`MergeA" , "`MergeB" ) ,
158
144
new GitLogEntry ( "CommitID" ,
159
145
"AuthorName" , "AuthorEmail" ,
160
146
"AuthorName" , "AuthorEmail" ,
161
147
"Summary" ,
162
148
"Description" ,
163
149
commitTime , commitTime ,
164
- new List < GitStatusEntry > ( ) ,
165
- "MergeA" , "MergeB" )
150
+ new List < GitStatusEntry > {
151
+ new GitStatusEntry ( "SomePath" , "SomeFullPath" , "SomeProjectPath" , GitFileStatus . Added , "SomeOriginalPath" )
152
+ } ,
153
+ "MergeA" , "MergeB" ) ,
154
+ new GitLogEntry ( "`CommitID" ,
155
+ "`AuthorName" , "`AuthorEmail" ,
156
+ "`AuthorName" , "`AuthorEmail" ,
157
+ "`Summary" ,
158
+ "`Description" ,
159
+ commitTime , commitTime ,
160
+ new List < GitStatusEntry > ( ) ,
161
+ "`MergeA" , "`MergeB" )
166
162
} ;
167
163
164
+
168
165
entries . AssertEqual ( otherEntries ) ;
169
166
}
170
167
0 commit comments