Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
 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);
 }