Skip to content

Commit e7c2fa9

Browse files
committed
Adding additional support for Microsoft Edge in .NET bindings tests
1 parent b095d43 commit e7c2fa9

File tree

3 files changed

+40
-0
lines changed

3 files changed

+40
-0
lines changed

Diff for: dotnet/test/edge/AssemblyTeardown.cs

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
using NUnit.Framework;
2+
using OpenQA.Selenium.Environment;
3+
4+
namespace OpenQA.Selenium.Edge
5+
{
6+
[SetUpFixture]
7+
// Outside a namespace to affect the entire assembly
8+
public class MySetUpClass
9+
{
10+
[SetUp]
11+
public void RunBeforeAnyTest()
12+
{
13+
EnvironmentManager.Instance.WebServer.Start();
14+
}
15+
16+
[TearDown]
17+
public void RunAfterAnyTests()
18+
{
19+
EnvironmentManager.Instance.CloseCurrentDriver();
20+
EnvironmentManager.Instance.WebServer.Stop();
21+
}
22+
}
23+
}

Diff for: dotnet/test/edge/EdgeSpecificTests.cs

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
using NUnit.Framework;
2+
using System;
3+
using System.Linq;
4+
using OpenQA.Selenium.Environment;
5+
using System.Collections.ObjectModel;
6+
using OpenQA.Selenium.Interactions;
7+
using System.Collections.Generic;
8+
9+
namespace OpenQA.Selenium.Edge
10+
{
11+
[TestFixture]
12+
public class EdgeSpecificTests : DriverTestFixture
13+
{
14+
}
15+
}

Diff for: dotnet/test/edge/WebDriver.Edge.Tests.csproj

+2
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@
4444
<Reference Include="System.Xml" />
4545
</ItemGroup>
4646
<ItemGroup>
47+
<Compile Include="AssemblyTeardown.cs" />
48+
<Compile Include="EdgeSpecificTests.cs" />
4749
<Compile Include="Properties\AssemblyInfo.cs" />
4850
</ItemGroup>
4951
<ItemGroup>

0 commit comments

Comments
 (0)