-
Notifications
You must be signed in to change notification settings - Fork 84
Expand file tree
/
Copy pathPhantomConfigTests.cs
More file actions
33 lines (30 loc) · 888 Bytes
/
Copy pathPhantomConfigTests.cs
File metadata and controls
33 lines (30 loc) · 888 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
using System;
using System.Text.RegularExpressions;
using WebDriverManager.DriverConfigs.Impl;
using Xunit;
namespace WebDriverManager.Tests
{
public class PhantomConfigTests : PhantomConfig
{
[Fact]
public void VersionTest()
{
var version = GetLatestVersion();
var regex = new Regex(@"^\d+\.\d+\.\d+$");
Assert.NotEmpty(version);
Assert.Matches(regex, version);
Assert.Equal("2.1.1", version);
}
[Fact]
public void DriverDownloadTest()
{
new DriverManager().SetUpDriver(new PhantomConfig());
Assert.NotEmpty(WebDriverFinder.FindFile(GetBinaryName()));
}
[Fact]
public void GetMatchingBrowserVersionTest()
{
Assert.Throws<NotImplementedException>(GetMatchingBrowserVersion);
}
}
}