1
0
mirror of https://github.com/oliverbooth/X10D synced 2024-11-09 23:15:40 +00:00

Rename local IEnumerable to "enumerable"

This commit is contained in:
Oliver Booth 2022-04-29 11:14:33 +01:00
parent c0c41326fc
commit 5251408b15
No known key found for this signature in database
GPG Key ID: 32A00B35503AF634

View File

@ -1,4 +1,4 @@
using Microsoft.VisualStudio.TestTools.UnitTesting; using Microsoft.VisualStudio.TestTools.UnitTesting;
using X10D.Core; using X10D.Core;
namespace X10D.Tests.Core; namespace X10D.Tests.Core;
@ -34,9 +34,9 @@ public class CoreTests
[DataRow(true)] [DataRow(true)]
public void AsEnumerableValue_ShouldBeLength1_GivenValue(object o) public void AsEnumerableValue_ShouldBeLength1_GivenValue(object o)
{ {
IEnumerable<object> array = o.AsEnumerableValue()!; IEnumerable<object> enumerable = o.AsEnumerableValue()!;
Assert.IsNotNull(array); Assert.IsNotNull(enumerable);
Assert.IsTrue(array.Count() == 1); Assert.IsTrue(enumerable.Count() == 1);
} }
[TestMethod] [TestMethod]
@ -45,8 +45,9 @@ public class CoreTests
[DataRow(true)] [DataRow(true)]
public void AsEnumerableValue_ShouldContainValue_Given_Value(object o) public void AsEnumerableValue_ShouldContainValue_Given_Value(object o)
{ {
IEnumerable<object> array = o.AsEnumerableValue()!; IEnumerable<object> enumerable = o.AsEnumerableValue()!;
Assert.IsNotNull(array); Assert.IsNotNull(enumerable);
Assert.AreEqual(o, array.ElementAt(0)); Assert.AreEqual(o, enumerable.ElementAt(0));
}
} }
} }