-
Notifications
You must be signed in to change notification settings - Fork 43
Expand file tree
/
Copy pathBasicTaskListTests.cs
More file actions
31 lines (25 loc) · 932 Bytes
/
BasicTaskListTests.cs
File metadata and controls
31 lines (25 loc) · 932 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// Licensed to Elasticsearch B.V under one or more agreements.
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
// See the LICENSE file in the project root for more information
using AwesomeAssertions;
using Elastic.Markdown.Tests.Inline;
namespace Elastic.Markdown.Tests.TaskList;
public class BasicTaskListTests(ITestOutputHelper output)
: InlineTest(output, """
- [ ] A pending task
- [x] A completed task
""")
{
[Fact]
public void RendersTaskListContainer() =>
Html.Should().Contain("class=\"contains-task-list\"");
[Fact]
public void RendersTaskListItem() =>
Html.Should().Contain("class=\"task-list-item\"");
[Fact]
public void RendersUncheckedCheckbox() =>
Html.ShouldContainHtml("""<input disabled="disabled" type="checkbox">""");
[Fact]
public void RendersCheckedCheckbox() =>
Html.ShouldContainHtml("""<input disabled="disabled" type="checkbox" checked="checked">""");
}