public void OsD_SetOs_Win32() { OsDetector.SetOS(testOsWin32); OsDetector.OsSelection selectedOS = OsDetector.DetectOs(); Assert.AreEqual(selectedOS, OsDetector.OsSelection.Windows, "OS detected is not as expected"); Assert.AreEqual(OsDetector.currentOs, OsDetector.OsSelection.Windows); }
public void OsD_SetOs_Mac() { OsDetector.SetOS(testOsMac); OsDetector.OsSelection selectedOS = OsDetector.DetectOs(); Assert.AreEqual(selectedOS, OsDetector.OsSelection.Mac, "OS detected is not as expected"); Assert.AreEqual(OsDetector.currentOs, OsDetector.OsSelection.Mac); }