public void CanDetectOSPlatform() { if (TestEnvironment.IsLinux) { Assert.True(RuntimeEnvironment.IsOSPlatform(OSPlatform.Linux)); } else if (TestEnvironment.IsOSX) { Assert.True(RuntimeEnvironment.IsOSPlatform(OSPlatform.OSX)); } else if (TestEnvironment.IsWindows) { Assert.True(RuntimeEnvironment.IsOSPlatform(OSPlatform.Windows)); } }