|
|
@ -70,7 +70,7 @@ xyz
|
|
|
|
var results = context.ParseWithDefaults(markdown);
|
|
|
|
var results = context.ParseWithDefaults(markdown);
|
|
|
|
|
|
|
|
|
|
|
|
results.Should().ContainKey("Test Release Profile")
|
|
|
|
results.Should().ContainKey("Test Release Profile")
|
|
|
|
.WhichValue.Should().BeEquivalentTo(new
|
|
|
|
.WhoseValue.Should().BeEquivalentTo(new
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Ignored = new List<string> {"abc"},
|
|
|
|
Ignored = new List<string> {"abc"},
|
|
|
|
Required = new List<string> {"xyz"}
|
|
|
|
Required = new List<string> {"xyz"}
|
|
|
@ -107,7 +107,7 @@ One more
|
|
|
|
var results = context.ParseWithDefaults(markdown);
|
|
|
|
var results = context.ParseWithDefaults(markdown);
|
|
|
|
|
|
|
|
|
|
|
|
results.Should().ContainKey("Test Release Profile")
|
|
|
|
results.Should().ContainKey("Test Release Profile")
|
|
|
|
.WhichValue.Should().BeEquivalentTo(new
|
|
|
|
.WhoseValue.Should().BeEquivalentTo(new
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Ignored = new List<string> {"abc"},
|
|
|
|
Ignored = new List<string> {"abc"},
|
|
|
|
Required = new List<string> {"xyz", "123"}
|
|
|
|
Required = new List<string> {"xyz", "123"}
|
|
|
@ -127,7 +127,7 @@ One more
|
|
|
|
|
|
|
|
|
|
|
|
profile.Ignored.Should().BeEquivalentTo("term2", "term3");
|
|
|
|
profile.Ignored.Should().BeEquivalentTo("term2", "term3");
|
|
|
|
profile.Required.Should().BeEquivalentTo("term4");
|
|
|
|
profile.Required.Should().BeEquivalentTo("term4");
|
|
|
|
profile.Preferred.Should().ContainKey(100).WhichValue.Should().BeEquivalentTo(new List<string> {"term1"});
|
|
|
|
profile.Preferred.Should().ContainKey(100).WhoseValue.Should().BeEquivalentTo(new List<string> {"term1"});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[Test]
|
|
|
|
[Test]
|
|
|
@ -139,10 +139,10 @@ One more
|
|
|
|
|
|
|
|
|
|
|
|
results.Should()
|
|
|
|
results.Should()
|
|
|
|
.ContainKey("First Release Profile")
|
|
|
|
.ContainKey("First Release Profile")
|
|
|
|
.WhichValue.IncludePreferredWhenRenaming.Should().Be(true);
|
|
|
|
.WhoseValue.IncludePreferredWhenRenaming.Should().Be(true);
|
|
|
|
results.Should()
|
|
|
|
results.Should()
|
|
|
|
.ContainKey("Second Release Profile")
|
|
|
|
.ContainKey("Second Release Profile")
|
|
|
|
.WhichValue.IncludePreferredWhenRenaming.Should().Be(false);
|
|
|
|
.WhoseValue.IncludePreferredWhenRenaming.Should().Be(false);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[Test]
|
|
|
|
[Test]
|
|
|
@ -307,7 +307,7 @@ abc
|
|
|
|
|
|
|
|
|
|
|
|
results.Should()
|
|
|
|
results.Should()
|
|
|
|
.ContainKey("Test Release Profile")
|
|
|
|
.ContainKey("Test Release Profile")
|
|
|
|
.WhichValue.Preferred.Should()
|
|
|
|
.WhoseValue.Preferred.Should()
|
|
|
|
.BeEquivalentTo(new Dictionary<int, List<string>>
|
|
|
|
.BeEquivalentTo(new Dictionary<int, List<string>>
|
|
|
|
{
|
|
|
|
{
|
|
|
|
{100, new List<string> {"abc"}}
|
|
|
|
{100, new List<string> {"abc"}}
|
|
|
@ -356,8 +356,7 @@ abc
|
|
|
|
var results = context.ParseWithDefaults(markdown);
|
|
|
|
var results = context.ParseWithDefaults(markdown);
|
|
|
|
|
|
|
|
|
|
|
|
results.Should()
|
|
|
|
results.Should()
|
|
|
|
.ContainKey("Test Release Profile")
|
|
|
|
.ContainKey("Test Release Profile").WhoseValue.Should()
|
|
|
|
.WhichValue.Should()
|
|
|
|
|
|
|
|
.BeEquivalentTo(new
|
|
|
|
.BeEquivalentTo(new
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Required = new { },
|
|
|
|
Required = new { },
|
|
|
|