Esempio n. 1
0
        public void OpenExplorerAtFile_with_NonExisting_Directory_Events_Message()
        {
            var wasCalled = false;

            BrowseLibrary.Messenger += (e) => wasCalled = true;

            string nonExistingPath = @"C:\Foo\Bar";

            BrowseLibrary.OpenExplorerAtFile(nonExistingPath);

            Assert.IsTrue(wasCalled);
        }
Esempio n. 2
0
        public void OpenExplorerAtFile_with_NonExisting_File_Events_Message()
        {
            var wasCalled = false;

            BrowseLibrary.Messenger += (e) => wasCalled = true;

            string existingFolderPath  = Application.StartupPath;
            string nonExistingFile     = @"Foo.Bar";
            string nonExistingFilePath = Path.Combine(existingFolderPath, nonExistingFile);

            BrowseLibrary.OpenExplorerAtFile(nonExistingFilePath);

            Assert.IsTrue(wasCalled);
        }