public void PreHighlightDoesNotContainDirectorySeparatorWhenDirectoryIsEmpty()
        {
            // Arrange

            const string input     = @"fileName.extension";
            var          evaluator = new DisplayNameHighlightEvaluator();

            // Act

            var result = evaluator.GetPreHighlight(input, true);

            // Arrange

            Assert.IsEmpty(result);
        }
        public void PreHighlightIsEmptyWhenHighlightFileNameIsFalse()
        {
            // Arrange

            const string input     = @"DirectoryName\fileName.extension";
            var          evaluator = new DisplayNameHighlightEvaluator();

            // Act

            var result = evaluator.GetPreHighlight(input, false);

            // Arrange

            Assert.That(result, Is.EqualTo(string.Empty));
        }
        public void PreHighlightIsDirectoryNameWithDirectorySeparator()
        {
            // Arrange

            const string directoryName = @"DirectoryName\";

            var input     = $@"{directoryName}\fileName.extension";
            var evaluator = new DisplayNameHighlightEvaluator();

            // Act

            var result = evaluator.GetPreHighlight(input, true);

            // Arrange

            Assert.That(result, Is.EqualTo(directoryName));
        }