Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit 7a71032

Browse files
committed
Don't make non-async tests async.
1 parent 4376bbc commit 7a71032

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

test/GitHub.App.UnitTests/ViewModels/Dialog/Clone/RepositoryCloneViewModelTests.cs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -148,15 +148,15 @@ public async Task Switching_To_EnterprisePage_Loads_It()
148148
}
149149

150150
[Test]
151-
public async Task Path_Is_Initialized()
151+
public void Path_Is_Initialized()
152152
{
153153
var target = CreateTarget();
154154

155155
Assert.That(target.Path, Is.EqualTo(defaultPath));
156156
}
157157

158158
[Test]
159-
public async Task Owner_And_Repository_Name_Is_Appended_To_Base_Path()
159+
public void Owner_And_Repository_Name_Is_Appended_To_Base_Path()
160160
{
161161
var owner = "owner";
162162
var repo = "repo";
@@ -169,7 +169,7 @@ public async Task Owner_And_Repository_Name_Is_Appended_To_Base_Path()
169169
}
170170

171171
[Test]
172-
public async Task PathWarning_Is_Not_Set_When_No_Repository_Selected()
172+
public void PathWarning_Is_Not_Set_When_No_Repository_Selected()
173173
{
174174
var target = CreateTarget();
175175

@@ -179,7 +179,7 @@ public async Task PathWarning_Is_Not_Set_When_No_Repository_Selected()
179179
}
180180

181181
[Test]
182-
public async Task PathWarning_Is_Set_For_Existing_File_At_Destination()
182+
public void PathWarning_Is_Set_For_Existing_File_At_Destination()
183183
{
184184
var target = CreateTarget();
185185
SetRepository(target.GitHubTab, CreateRepositoryModel("owner", "repo"));
@@ -189,7 +189,7 @@ public async Task PathWarning_Is_Set_For_Existing_File_At_Destination()
189189
}
190190

191191
[Test]
192-
public async Task PathWarning_Is_Set_For_Existing_Clone_At_Destination()
192+
public void PathWarning_Is_Set_For_Existing_Clone_At_Destination()
193193
{
194194
var owner = "owner";
195195
var repo = "repo";
@@ -203,7 +203,7 @@ public async Task PathWarning_Is_Set_For_Existing_Clone_At_Destination()
203203
}
204204

205205
[Test]
206-
public async Task PathWarning_Is_Set_For_Repository_With_No_Origin()
206+
public void PathWarning_Is_Set_For_Repository_With_No_Origin()
207207
{
208208
var owner = "owner";
209209
var repo = "repo";
@@ -216,7 +216,7 @@ public async Task PathWarning_Is_Set_For_Repository_With_No_Origin()
216216
}
217217

218218
[Test]
219-
public async Task PathWarning_Is_Set_For_Directory_With_No_Repository()
219+
public void PathWarning_Is_Set_For_Directory_With_No_Repository()
220220
{
221221
var owner = "owner";
222222
var repo = "repo";
@@ -229,7 +229,7 @@ public async Task PathWarning_Is_Set_For_Directory_With_No_Repository()
229229
}
230230

231231
[Test]
232-
public async Task PathWarning_Is_Set_For_Existing_Repository_At_Destination_With_Different_Remote()
232+
public void PathWarning_Is_Set_For_Existing_Repository_At_Destination_With_Different_Remote()
233233
{
234234
var originalOwner = "original_Owner";
235235
var forkedOwner = "forked_owner";
@@ -246,7 +246,7 @@ public async Task PathWarning_Is_Set_For_Existing_Repository_At_Destination_With
246246
}
247247

248248
[Test]
249-
public async Task Repository_Name_Replaces_Last_Part_Of_Non_Base_Path()
249+
public void Repository_Name_Replaces_Last_Part_Of_Non_Base_Path()
250250
{
251251
var target = CreateTarget();
252252

@@ -281,7 +281,7 @@ public async Task Repository_Name_Replaces_Last_Part_Of_Non_Base_Path()
281281
Description = "Owner deleted")]
282282
[TestCase("c:\\base", "same/same", "c:\\base\\same\\same", "owner2/repo2", "c:\\base\\owner2\\repo2",
283283
Description = "Owner and repo have same name")]
284-
public async Task User_Edits_Path(string defaultClonePath, string repo1, string userPath, string repo2, string expectPath)
284+
public void User_Edits_Path(string defaultClonePath, string repo1, string userPath, string repo2, string expectPath)
285285
{
286286
var target = CreateTarget(defaultClonePath: defaultClonePath);
287287
SetRepository(target.GitHubTab, CreateRepositoryModel(repo1));

test/GitHub.App.UnitTests/ViewModels/Dialog/GitHubDialogWindowViewModelTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public void SignalsCloseWhenContentRaisesClosed()
4747
public class TheStartWithConnectionMethod
4848
{
4949
[Test]
50-
public async Task ShowsLoginDialogWhenNoConnectionsAvailableAsync()
50+
public void ShowsLoginDialogWhenNoConnectionsAvailableAsync()
5151
{
5252
var target = CreateTarget();
5353
var content = Substitute.For<ITestViewModel>();

0 commit comments

Comments
 (0)