public Hooks(ScenarioContext scenarioContext, CurrentVersionDriver currentVersionDriver, RuntimeInformationProvider runtimeInformationProvider, IUnitTestRuntimeProvider unitTestRuntimeProvider) { _scenarioContext = scenarioContext; _currentVersionDriver = currentVersionDriver; _runtimeInformationProvider = runtimeInformationProvider; _unitTestRuntimeProvider = unitTestRuntimeProvider; }
public void GetProcessArchitecture_does_not_return_unknown() { // arrange var provider = new RuntimeInformationProvider(); // act var processArchitecture = provider.GetProcessArchitecture(); // assert Assert.NotEqual(Architecture.Unknown, processArchitecture); }
public void GetOSPlatform_does_not_return_unknown() { // arrange var provider = new RuntimeInformationProvider(); // act var osPlatform = provider.GetOSPlatform(); // assert Assert.NotEqual(OSPlatform.Unknown, osPlatform); }
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); }