Ejemplo n.º 1
0
        public void BasicTest()
        {
            var resolver   = new OperatingSystemResolver();
            var detectedOS = resolver.Detect();

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

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