Skip to content

Commit

Permalink
Adding additional support for Microsoft Edge in .NET bindings tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jimevans committed Aug 11, 2015
1 parent b095d43 commit e7c2fa9
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 0 deletions.
23 changes: 23 additions & 0 deletions dotnet/test/edge/AssemblyTeardown.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
using NUnit.Framework;
using OpenQA.Selenium.Environment;

namespace OpenQA.Selenium.Edge
{
[SetUpFixture]
// Outside a namespace to affect the entire assembly
public class MySetUpClass
{
[SetUp]
public void RunBeforeAnyTest()
{
EnvironmentManager.Instance.WebServer.Start();
}

[TearDown]
public void RunAfterAnyTests()
{
EnvironmentManager.Instance.CloseCurrentDriver();
EnvironmentManager.Instance.WebServer.Stop();
}
}
}
15 changes: 15 additions & 0 deletions dotnet/test/edge/EdgeSpecificTests.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
using NUnit.Framework;
using System;
using System.Linq;
using OpenQA.Selenium.Environment;
using System.Collections.ObjectModel;
using OpenQA.Selenium.Interactions;
using System.Collections.Generic;

namespace OpenQA.Selenium.Edge
{
[TestFixture]
public class EdgeSpecificTests : DriverTestFixture
{
}
}
2 changes: 2 additions & 0 deletions dotnet/test/edge/WebDriver.Edge.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="AssemblyTeardown.cs" />
<Compile Include="EdgeSpecificTests.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
Expand Down

0 comments on commit e7c2fa9

Please sign in to comment.