Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
prezaei committed Sep 26, 2024
1 parent 65b6c9d commit a71e1d4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public void New_WhenOneValue_ValuesFieldSetToThatValue()
[TestMethod]
public void New_WhenOneEnumerableValue_ValuesFieldSetToThatValue()
{
var v = new ReadOnlyValueList<string?>(Enumerable.Repeat("a", 1));
var v = new ReadOnlyValueList<string?>(new string[] { "a" }.Where(x => true));
v.GetInner().Should().Be("a");
v.Count.Should().Be(1);
v[0].Should().Be("a");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public void AsStringValues_WhenNull_ReturnsDefault()
[TestMethod]
public void AsStringValues_WhenOneValue_ReturnsOneValue()
{
var items = Enumerable.Repeat("a", 1);
var items = new string[] { "a" }.Where(x => true);
var values = items.AsStringValues();
values.Should().BeEquivalentTo(new StringValues("a"));
var internals = ValuesField.GetValue(values);
Expand Down

0 comments on commit a71e1d4

Please sign in to comment.