Skip to content

Commit

Permalink
added tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mizrael committed Sep 18, 2024
1 parent 1bf01b8 commit 340c07a
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,20 @@ public void IsSequenceCheckShouldReturnTrueWhenSequenceInFragmentStartsWithComme
var yaml = """
# comment
- name: control1
- name: control2
""";

var isSequence = PaYamlSerializer.CheckIsSequence(yaml);
isSequence.Should().BeTrue();
}

[TestMethod]
public void IsSequenceCheckShouldReturnTrueWhenSequenceInFragmentBeginsWithDocumentStart()
{
var yaml = """
---
- name: control1
- name: control2
""";

var isSequence = PaYamlSerializer.CheckIsSequence(yaml);
Expand Down

0 comments on commit 340c07a

Please sign in to comment.