Skip to content

Commit e1808e5

Browse files
Rename to CloseAsync
1 parent d1dfc66 commit e1808e5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/CommunityToolkit.Maui.UnitTests/Views/Popup/PopupPageTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ public async Task PopupPageT_Close_ShouldSetResultAndPopModalAsync()
166166

167167
await navigation.PushModalAsync(popupPage);
168168

169-
await popupPage.Close(expectedResult, CancellationToken.None);
169+
await popupPage.CloseAsync(expectedResult, CancellationToken.None);
170170
var actualResult = await taskCompletionSource.Task;
171171

172172
// Assert
@@ -213,7 +213,7 @@ public void PopupPageT_Close_ShouldThrowOperationCanceledException_WhenTokenIsCa
213213
cts.Cancel();
214214

215215
// Act
216-
Func<Task> act = async () => await popupPage.Close(result, cts.Token);
216+
Func<Task> act = async () => await popupPage.CloseAsync(result, cts.Token);
217217

218218
// Assert
219219
act.Should().ThrowAsync<OperationCanceledException>();

src/CommunityToolkit.Maui/Views/Popup/PopupPage.shared.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public PopupPage(View view, IPopupOptions popupOptions)
1616
{
1717
}
1818

19-
public Task Close(PopupResult<T> result, CancellationToken token = default) => base.CloseAsync(result, token);
19+
public Task CloseAsync(PopupResult<T> result, CancellationToken token = default) => base.CloseAsync(result, token);
2020
}
2121

2222
partial class PopupPage : ContentPage, IQueryAttributable

0 commit comments

Comments
 (0)