diff --git a/tests/Kiota.Tests/KiotaHostTests.cs b/tests/Kiota.Tests/KiotaHostTests.cs index 4b8af31b91..5e3b4748c8 100644 --- a/tests/Kiota.Tests/KiotaHostTests.cs +++ b/tests/Kiota.Tests/KiotaHostTests.cs @@ -9,12 +9,23 @@ public class KiotaHostTests { [Fact] public async Task ThrowsOnInvalidOutputPath() { - await KiotaHost.GetRootCommand().InvokeAsync(new string[] { "-o", "X:\\doesnexit" }); + await KiotaHost.GetRootCommand().InvokeAsync(new string[] { "-o", "A:\\doesnexit" }); } [Fact] public async Task ThrowsOnInvalidInputPath() { - await KiotaHost.GetRootCommand().InvokeAsync(new string[] { "-d", "X:\\doesnexit" }); - await KiotaHost.GetRootCommand().InvokeAsync(new string[] { "-d", "https://nonexistentdomain.net/doesnexit" }); + await KiotaHost.GetRootCommand().InvokeAsync(new string[] { "-d", "A:\\doesnexit" }); + } + [Fact] + public async Task ThrowsOnInvalidInputUrl() { + await KiotaHost.GetRootCommand().InvokeAsync(new string[] { "-d", "https://nonexistentdomain56a535ba-bda6-405e-b5e2-ef5f11bf1003.net/doesnexit" }); + } + [Fact] + public async Task ThrowsOnInvalidLanguage() { + await KiotaHost.GetRootCommand().InvokeAsync(new string[] { "-l", "Pascal" }); + } + [Fact] + public async Task ThrowsOnInvalidClassName() { + await KiotaHost.GetRootCommand().InvokeAsync(new string[] { "-c", ".Graph" }); } } }