コード例 #1
0
 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));
     }
 }
コード例 #2
0
ファイル: FrmCode.cs プロジェクト: zhyzcl/OftenBuild
 private static string StrConvert(string str, Microsoft.VisualBasic.VbStrConv conv)
 {
     return(Microsoft.VisualBasic.Strings.StrConv(str, conv));
 }