Skip to content

Commit 13dee74

Browse files
committed
Added test to verify #20
1 parent 70a284d commit 13dee74

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

AngleSharp.Scripting.JavaScript.Tests/AngleSharp.Scripting.JavaScript.Tests.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@
8181
<ItemGroup>
8282
<Compile Include="FireEventTests.cs" />
8383
<Compile Include="GeneratorTests.cs" />
84+
<Compile Include="IntegrationTests.cs" />
8485
<Compile Include="InteractionTests.cs" />
8586
<Compile Include="JqueryTests.cs" />
8687
<Compile Include="Mocks\DelayedRequester.cs" />
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
namespace AngleSharp.Scripting.JavaScript.Tests
2+
{
3+
using NUnit.Framework;
4+
using System.Threading.Tasks;
5+
6+
[TestFixture]
7+
public class IntegrationTests
8+
{
9+
[Test]
10+
public async Task PageEcoEnergyShouldLoadFine()
11+
{
12+
var config = Configuration.Default.WithDefaultLoader().WithCss().WithCookies().WithJavaScript();
13+
var context = BrowsingContext.New(config);
14+
var document = await context.OpenAsync("http://www.eco2energie.biz/");
15+
Assert.IsNotNull(document);
16+
}
17+
}
18+
}

0 commit comments

Comments
 (0)