public void GetCorrectRuntimeIdsForRuntimes(string runtimeName, string expectedRids) { var actual = DependencyContext.GetRuntimeIdentifiers(runtimeName).OrderBy(r => r).ToArray(); if (string.IsNullOrEmpty(expectedRids)) { Assert.Empty(actual); } else { var expected = expectedRids.Split(','); expected = expected.OrderBy(r => r).ToArray(); Assert.Equal(expected, actual); } }