public void RemoteBrowserTypeError() { Assert.ThrowsException <ArgumentException>(() => SeleniumConfig.GetRemoteBrowserType("remote")); Assert.ThrowsException <ArgumentException>(() => SeleniumConfig.GetRemoteBrowserType("HEADLESSCHROME")); Assert.ThrowsException <ArgumentException>(() => SeleniumConfig.GetRemoteBrowserType("PHANTOM")); Assert.ThrowsException <ArgumentException>(() => SeleniumConfig.GetRemoteBrowserType("OTHER")); }
public void RemoteBrowserTypeMatch() { Assert.AreEqual(RemoteBrowserType.IE, SeleniumConfig.GetRemoteBrowserType("INTERNET EXPLORER")); Assert.AreEqual(RemoteBrowserType.IE, SeleniumConfig.GetRemoteBrowserType("INTERNETExPLOREr")); Assert.AreEqual(RemoteBrowserType.IE, SeleniumConfig.GetRemoteBrowserType("ie")); Assert.AreEqual(RemoteBrowserType.Firefox, SeleniumConfig.GetRemoteBrowserType("Firefox")); Assert.AreEqual(RemoteBrowserType.Chrome, SeleniumConfig.GetRemoteBrowserType("chrome")); Assert.AreEqual(RemoteBrowserType.Safari, SeleniumConfig.GetRemoteBrowserType("SAFARI")); Assert.AreEqual(RemoteBrowserType.Edge, SeleniumConfig.GetRemoteBrowserType("edge")); }