public void GetOSPlatform_does_not_return_unknown()
        {
            // arrange
            var provider = new RuntimeInformationProvider();

            // act
            var osPlatform = provider.GetOSPlatform();

            // assert
            Assert.NotEqual(OSPlatform.Unknown, osPlatform);
        }
Esempio n. 2
0
        public void GetRuntimeInformation_works()
        {
            // arrange
            var provider = new RuntimeInformationProvider();

            // act
            var runtimeInformation = provider.GetRuntimeInformation();

            // assert
            Assert.Equal(provider.GetOSPlatform(), runtimeInformation.Platform);
            Assert.Equal(provider.GetProcessArchitecture(), runtimeInformation.ProcessArchitecture);
        }