Esempio n. 1
0
 void ReturnsNullWhenChromeNorChromiumIsNotFound()
 {
     Assert.Null(BrowserPathFinder.GetBrowserPath(new FakeFs(true), true));
 }
Esempio n. 2
0
        void ReturnsLinuxPathIfIsUnixFs()
        {
            var chromePath = BrowserPathFinder.GetBrowserPath(new FakeFs(true, "/opt/google/chrome/google-chrome"), true);

            Assert.Equal("/opt/google/chrome/google-chrome", chromePath);
        }
Esempio n. 3
0
        void ReturnsLinuxChromiumBrowserPathIfIsUnixFsAndChromeNotInstalled()
        {
            var chromePath = BrowserPathFinder.GetBrowserPath(new FakeFs(true, "/usr/bin/chromium-browser"), true);

            Assert.Equal("/usr/bin/chromium-browser", chromePath);
        }
Esempio n. 4
0
        void ReturnsWindowsPathIfNotUnixFs()
        {
            var chromePath = BrowserPathFinder.GetBrowserPath(new FakeFs(false, @"C:/Program Files (x86)/Google/Chrome/Application/chrome.exe"), true);

            Assert.Equal(@"C:/Program Files (x86)/Google/Chrome/Application/chrome.exe", chromePath);
        }