public void RuntimeIdIsGeneratedCorrectly(string osName, string version, string architecture, string expectedRid) { var runtimeEnv = new DummyRuntimeEnvironment() { OperatingSystem = osName, OperatingSystemVersion = version, RuntimeArchitecture = architecture }; Assert.Equal(expectedRid, RuntimeEnvironmentExtensions.GetRuntimeIdentifierWithoutOverride(runtimeEnv)); }
public void AllRuntimeIdsAreGeneratedCorrectly(string osName, string version, string architecture, string expectedRids) { var runtimeEnv = new DummyRuntimeEnvironment() { OperatingSystem = osName, OperatingSystemVersion = version, RuntimeArchitecture = architecture }; Assert.Equal(expectedRids.Split(','), runtimeEnv.GetAllRuntimeIdentifiers().ToArray()); }
public void RuntimeIdIsGeneratedCorrectly(string osName, string version, string architecture, string expectedRid) { var runtimeEnv = new DummyRuntimeEnvironment() { OperatingSystem = osName, OperatingSystemVersion = version, RuntimeArchitecture = architecture }; Assert.Equal(expectedRid, RuntimeEnvironmentExtensions.GetRuntimeIdentifierWithoutOverride(runtimeEnv)); }
public void AllRuntimeIdsAreGeneratedCorrectly(string osName, string version, string architecture, string expectedRids) { var runtimeEnv = new DummyRuntimeEnvironment() { OperatingSystem = osName, OperatingSystemVersion = version, RuntimeArchitecture = architecture }; Assert.Equal(expectedRids.Split(','), RuntimeEnvironmentExtensions.GetAllRuntimeIdentifiersWithoutOverride(runtimeEnv).ToArray()); }