Ejemplo n.º 1
0
        public void GetDriverLetterHint_SimplePath_ReturnsRootLetter()
        {
            var re = new RootEntryTestStub();

            var hint = re.GetDriverLetterHint(@"C:\MyFolder", @"C:\");

            Assert.That(hint, Is.EqualTo("C"));
        }
Ejemplo n.º 2
0
        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"));
        }
Ejemplo n.º 3
0
        public void GetDriverLetterHint_SimpleRootPathOddAsRootDifferent_ReturnsRootDriveLetter()
        {
            var re = new RootEntryTestStub();

            var hint = re.GetDriverLetterHint(@"C:\", @"D:\");

            Assert.That(hint, Is.EqualTo("D"));
        }