예제 #1
0
        public void BasicTest()
        {
            var resolver   = new OperatingSystemResolver();
            var detectedOS = resolver.Detect();

            Assert.NotEqual(OperatingSystemKind.Unknown, detectedOS);
        }
예제 #2
0
        public void ResolverMatchesOsInfo()
        {
            var resolver   = new OperatingSystemResolver();
            var detectedOS = resolver.Detect();
            var osInfo     = new OperatingSystemInfo();

            Assert.Equal(detectedOS, osInfo.Platform);
        }