Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit 742e048

Browse files
Fixing tests
1 parent 39a877c commit 742e048

File tree

1 file changed

+19
-22
lines changed

1 file changed

+19
-22
lines changed

src/tests/UnitTests/IO/GitLogEntryListTests.cs

Lines changed: 19 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,10 @@ public void ListOf1ShouldEqualListOf1()
8585
"Summary",
8686
"Description",
8787
commitTime, commitTime,
88-
new List<GitStatusEntry>(new[]
88+
new List<GitStatusEntry>
8989
{
90-
new GitStatusEntry("SomePath", "SomeFullPath", "SomeProjectPath", GitFileStatus.Added,
91-
"SomeOriginalPath"),
92-
}),
90+
new GitStatusEntry("SomePath", "SomeFullPath", "SomeProjectPath", GitFileStatus.Added, "SomeOriginalPath"),
91+
},
9392
"MergeA", "MergeB")
9493
};
9594

@@ -125,11 +124,10 @@ public void ListOf2ShouldEqualListOf2()
125124
"AuthorName", "AuthorEmail",
126125
"Summary", "Description",
127126
commitTime, commitTime,
128-
new List<GitStatusEntry>(new[]
127+
new List<GitStatusEntry>
129128
{
130-
new GitStatusEntry("SomePath", "SomeFullPath", "SomeProjectPath", GitFileStatus.Added,
131-
"SomeOriginalPath"),
132-
}),
129+
new GitStatusEntry("SomePath", "SomeFullPath", "SomeProjectPath", GitFileStatus.Added, "SomeOriginalPath"),
130+
},
133131
"MergeA", "MergeB"),
134132
new GitLogEntry("`CommitID",
135133
"`AuthorName", "`AuthorEmail",
@@ -143,28 +141,27 @@ public void ListOf2ShouldEqualListOf2()
143141

144142
var otherEntries = new[]
145143
{
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"),
158144
new GitLogEntry("CommitID",
159145
"AuthorName", "AuthorEmail",
160146
"AuthorName", "AuthorEmail",
161147
"Summary",
162148
"Description",
163149
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")
166162
};
167163

164+
168165
entries.AssertEqual(otherEntries);
169166
}
170167

0 commit comments

Comments
 (0)