System.Diagnostics.Tests.ProcessTests.Process_StartInvalidNamesTest C# (CSharp) Method

Process_StartInvalidNamesTest() private method

private Process_StartInvalidNamesTest ( ) : void
return void
        public void Process_StartInvalidNamesTest()
        {
            Assert.Throws<InvalidOperationException>(() => Process.Start(null, "userName", new SecureString(), "thisDomain"));
            Assert.Throws<InvalidOperationException>(() => Process.Start(string.Empty, "userName", new SecureString(), "thisDomain"));
            Assert.Throws<Win32Exception>(() => Process.Start("exe", string.Empty, new SecureString(), "thisDomain"));
        }
ProcessTests