예제 #1
0
파일: RootEntryTest.cs 프로젝트: CDEApp/CDE
        public void GetDriverLetterHint_SimplePath_ReturnsRootLetter()
        {
            var re = new RootEntryTestStub();

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

            Assert.That(hint, Is.EqualTo("C"));
        }
예제 #2
0
파일: RootEntryTest.cs 프로젝트: CDEApp/CDE
        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"));
        }
예제 #3
0
파일: RootEntryTest.cs 프로젝트: CDEApp/CDE
        public void GetDriverLetterHint_SimpleRootPathOddAsRootDifferent_ReturnsRootDriveLetter()
        {
            var re = new RootEntryTestStub();

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

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