Skip to content

Commit

Permalink
Update AngleSharp to 1.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Denis Ivanov committed Apr 1, 2024
1 parent b966996 commit ef4eeb4
Show file tree
Hide file tree
Showing 4 changed files with 394 additions and 396 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="nunit" Version="4.0.1" />
<PackageReference Include="nunit" Version="4.1.0" />
<PackageReference Include="NUnit3TestAdapter" Version="4.5.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.9.0" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,27 +1,26 @@
using System.Threading.Tasks;
using AngleSharp.Html.Dom;
using NUnit.Framework;
using System.Threading.Tasks;

namespace AngleSharp.ContentExtraction.IntegrationTests;

namespace AngleSharp.ContentExtraction.IntegrationTests
[TestFixture]
public class ContentExtractorTests
{
[TestFixture]
public class ContentExtractorTests
[Test]
public async Task Extract_IntegrationTest()
{
[Test]
public async Task Extract_IntegrationTest()
{
// Arrange
var config = Configuration.Default.WithDefaultLoader();
var address = "https://lenta.ru/articles/2020/05/13/coronausa/";
var context = BrowsingContext.New(config);
var document = (IHtmlDocument)await context.OpenAsync(address);
var extractor = new ContentExtractor();
// Arrange
var config = Configuration.Default.WithDefaultLoader();
const string address = "https://lenta.ru/articles/2020/05/13/coronausa/";
var context = BrowsingContext.New(config);
var document = (IHtmlDocument)await context.OpenAsync(address);
var extractor = new ContentExtractor();

// Act
extractor.Extract(document);
// Act
extractor.Extract(document);

// Assert
Assert.Pass();
}
// Assert
Assert.Pass();
}
}
10 changes: 5 additions & 5 deletions AngleSharp.ContentExtraction/AngleSharp.ContentExtraction.csproj
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFrameworks>net6.0;net7.0;net8.0</TargetFrameworks>
<Authors>Denis Ivanov</Authors>
<PackageId>AngleSharp.ContentExtraction</PackageId>
<Version>1.0.0</Version>
<FileVersion>1.0.0</FileVersion>
<AssemblyVersion>1.0.0</AssemblyVersion>
<Version>1.0.1</Version>
<FileVersion>1.0.1</FileVersion>
<AssemblyVersion>1.0.1</AssemblyVersion>
<Description>Content extraction via text density</Description>
<PackageProjectUrl>https://github.com/denis-ivanov/AngleSharp.ContentExtraction</PackageProjectUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageTags>HTML, Content extraction</PackageTags>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="AngleSharp" Version="1.0.7" />
<PackageReference Include="AngleSharp" Version="1.1.2" />
<PackageReference Include="AngleSharp.Css" Version="0.17.0" />
</ItemGroup>

Expand Down
Loading

0 comments on commit ef4eeb4

Please sign in to comment.