Пример #1
0
        public void ToDriveLetter_Valid()
        {
            char   letter      = GenerateRandomLetter();
            string driveLetter = DriveLetterTools.ToDriveLetter(letter);

            Assert.AreEqual(letter + ":", driveLetter);
        }
Пример #2
0
        public void ToDriveLetter_NotALetter()
        {
            char nonLetter = GenerateRandomNonLetter();

            DriveLetterTools.ToDriveLetter(nonLetter);
        }
Пример #3
0
 public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
 {
     return DriveLetterTools.ToDriveLetter((char)value);
 }