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

            // act
            var processArchitecture = provider.GetProcessArchitecture();

            // assert
            Assert.NotEqual(Architecture.Unknown, processArchitecture);
        }
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);
        }