namespace ElectronNET.IntegrationTests.Tests
{
    using ElectronNET.API;

    [Collection("ElectronCollection")]
    public class ShellTests
    {
        [Fact]
        public async Task OpenExternal_invalid_scheme_returns_error_or_empty()
        {
            var error = await Electron.Shell.OpenExternalAsync("mailto:test@example.com");
            (error == string.Empty || error.Contains("@") || error.Length > 0).Should().BeTrue(); // call succeeded
        }
    }
}