Skip to content

Commit ab76ce1

Browse files
committed
Restructured test initialization/cleanup
Signed-off-by: Peter Nelson <[email protected]>
1 parent 38fb4ab commit ab76ce1

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

WebKitBrowser.Tests/JavaScript.cs

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,20 @@ namespace WebKit.Tests
99
[TestClass]
1010
public class JavaScript
1111
{
12-
private static readonly TestHarness _testHarness;
13-
14-
static JavaScript()
12+
private static TestHarness _testHarness;
13+
14+
[ClassInitialize]
15+
public static void Initialize(TestContext Context)
1516
{
1617
_testHarness = new TestHarness();
1718
}
1819

20+
[ClassCleanup]
21+
public static void Cleanup()
22+
{
23+
_testHarness.Stop();
24+
}
25+
1926
[TestMethod]
2027
public void TestScriptingEnabled()
2128
{

WebKitBrowser.Tests/LocalStorage.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,6 @@ namespace WebKit.Tests
1313
[TestClass]
1414
public class LocalStorage
1515
{
16-
public LocalStorage()
17-
{
18-
}
19-
2016
[TestMethod]
2117
public void TestLocalStorage()
2218
{

0 commit comments

Comments
 (0)