public void ShellBatTest() { if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) { // Simple test var result = Shell.Bat("whoami"); Assert.IsTrue(result.Any()); } }