public void GetDriverLetterHint_SimplePath_ReturnsRootLetter() { var re = new RootEntryTestStub(); var hint = re.GetDriverLetterHint(@"C:\MyFolder", @"C:\"); Assert.That(hint, Is.EqualTo("C")); }
public void GetDriverLetterHint_UncPath_ReturnsUNC() { var re = new RootEntryTestStub(isUnc: true); var hint = re.GetDriverLetterHint(@"\\server\basepath\path", @"doest matter"); Assert.That(hint, Is.EqualTo("UNC")); }
public void GetDriverLetterHint_SimpleRootPathOddAsRootDifferent_ReturnsRootDriveLetter() { var re = new RootEntryTestStub(); var hint = re.GetDriverLetterHint(@"C:\", @"D:\"); Assert.That(hint, Is.EqualTo("D")); }