public void Arguments() { String expected = "/C wmic os get filter /format:list"; WMIProcessor wmi = new WMIProcessor(WMI_ALIAS.OPERATING_SYSTEM, "filter", false); Assert.AreEqual(expected, wmi.AssertArguments()); }
public void ArgumentsRemote() { String expected = "/C wmic /node:10.1.2.8 os get filter /format:list"; WMIProcessor wmi = new WMIProcessor("10.1.2.8", WMI_ALIAS.OPERATING_SYSTEM, "filter", false); wmi.RemoteExecute = true; Assert.AreEqual(expected, wmi.AssertArguments()); }