public void StrConv(string str, Microsoft.VisualBasic.VbStrConv conversion, int localeID, string expected) { if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) { Assert.Equal(expected, Strings.StrConv(str, conversion, localeID)); } else { Assert.Throws <PlatformNotSupportedException>(() => Strings.StrConv(str, conversion, localeID)); } }
private static string StrConvert(string str, Microsoft.VisualBasic.VbStrConv conv) { return(Microsoft.VisualBasic.Strings.StrConv(str, conv)); }