diff --git a/src/Cloudtoid.Framework.UnitTests/Collections/ReadOnlyValueListTests.cs b/src/Cloudtoid.Framework.UnitTests/Collections/ReadOnlyValueListTests.cs index 5ed111a..553f53e 100644 --- a/src/Cloudtoid.Framework.UnitTests/Collections/ReadOnlyValueListTests.cs +++ b/src/Cloudtoid.Framework.UnitTests/Collections/ReadOnlyValueListTests.cs @@ -115,7 +115,7 @@ public void New_WhenOneValue_ValuesFieldSetToThatValue() [TestMethod] public void New_WhenOneEnumerableValue_ValuesFieldSetToThatValue() { - var v = new ReadOnlyValueList(Enumerable.Repeat("a", 1)); + var v = new ReadOnlyValueList(new string[] { "a" }.Where(x => true)); v.GetInner().Should().Be("a"); v.Count.Should().Be(1); v[0].Should().Be("a"); diff --git a/src/Cloudtoid.Framework.UnitTests/String/StringValuesExtensionsTests.cs b/src/Cloudtoid.Framework.UnitTests/String/StringValuesExtensionsTests.cs index fd4dcb8..2ff3a8a 100644 --- a/src/Cloudtoid.Framework.UnitTests/String/StringValuesExtensionsTests.cs +++ b/src/Cloudtoid.Framework.UnitTests/String/StringValuesExtensionsTests.cs @@ -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);