public void For_Windows_Operation_Systems_the_value_of_family_item_should_be_equals_to_windows() { var nmapService = new NMAPService(null, null); var simpleOSNameForWindowsXP = nmapService.GetSimpleOSName("Microsoft Windows XP"); var simpleOSNameForWindows7 = nmapService.GetSimpleOSName("WiNdOwS 7"); Assert.AreEqual("windows", simpleOSNameForWindowsXP, "The simple OS name is incorrect."); Assert.AreEqual("windows", simpleOSNameForWindows7, "The simple OS name is incorrect."); }
public void For_OperationSystems_different_of_Windows_the_value_of_family_item_should_be_equals_to_real_operation_system_name() { var nmapService = new NMAPService(string.Empty, string.Empty); var simpleOSNameForLindows = nmapService.GetSimpleOSName("Lindows"); Assert.AreEqual("Lindows", simpleOSNameForLindows, "The simple OS name is incorrect."); }