private void ValidateGetOSDisplayName(OS os, string osVersion, string expectedDisplayName) { Platform platform = CreatePlatform("runtime/2.1", new string[] { "runtime" }, os: os, osVersion: osVersion); VariableHelper variableHelper = new VariableHelper(new Manifest(), Mock.Of <IManifestOptionsInfo>(), null); PlatformInfo platformInfo = PlatformInfo.Create(platform, "", "runtime", variableHelper, "./"); Assert.Equal(expectedDisplayName, platformInfo.GetOSDisplayName()); }