Skip to content

Commit

Permalink
Add tests to verify DisconnectHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
PureWeen committed Jul 12, 2022
1 parent 485d60b commit 31b86f7
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Core/tests/DeviceTests/Handlers/HandlerTestBaseOfT.Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,16 @@ await AssertionExtensions.Wait(() =>
}
#endif

[Fact]
public async Task DisconnectHandlerDoesntCrash()
{
var handler = await CreateHandlerAsync(new TStub()) as IPlatformViewHandler;
await InvokeOnMainThreadAsync(() =>
{
handler.DisconnectHandler();
});
}

[Fact(DisplayName = "Automation Id is set correctly")]
public async Task SetAutomationId()
{
Expand Down

0 comments on commit 31b86f7

Please sign in to comment.