diff --git a/tests/KubernetesClientConfigurationTests.cs b/tests/KubernetesClientConfigurationTests.cs index 32d59ec..cdc83c8 100755 --- a/tests/KubernetesClientConfigurationTests.cs +++ b/tests/KubernetesClientConfigurationTests.cs @@ -23,6 +23,16 @@ namespace k8s.Tests /// private static readonly string kubeConfigUserPassword = "assets/kubeconfig.user-pass.yml"; + /// + /// The configuration file is not present. An KubeConfigException should be thrown + /// + [Fact] + public void ConfigurationFileNotFound() + { + var fi = new FileInfo("/path/to/nowhere"); + Assert.Throws(() => new KubernetesClientConfiguration(fi)); + } + /// /// Checks Host is loaded from the default configuration file ///