Beispiel #1
0
 public void select_with_no_profile_and_a_default()
 {
     Project.CurrentProject = new Project {
         Profile = null
     };
     BrowserFactory.DetermineBrowserType(BrowserType.Firefox)
     .ShouldBe(BrowserType.Firefox);
 }
Beispiel #2
0
 public void select_with_no_profile_or_default_should_be_chrome()
 {
     Project.CurrentProject = new Project {
         Profile = null
     };
     BrowserFactory.DetermineBrowserType(null)
     .ShouldBe(BrowserType.Chrome);
 }
Beispiel #3
0
        public void profile_wins()
        {
            Project.CurrentProject = new Project {
                Profile = "phantom"
            };

            BrowserFactory.DetermineBrowserType(null)
            .ShouldBe(BrowserType.Phantom);

            BrowserFactory.DetermineBrowserType(BrowserType.Firefox)
            .ShouldBe(BrowserType.Phantom);
        }