1
0
mirror of https://github.com/oliverbooth/X10D synced 2024-11-22 19:18:46 +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;
namespace X10D.Tests.Core;
@ -34,9 +34,9 @@ public class CoreTests
[DataRow(true)]
public void AsEnumerableValue_ShouldBeLength1_GivenValue(object o)
{
IEnumerable<object> array = o.AsEnumerableValue()!;
Assert.IsNotNull(array);
Assert.IsTrue(array.Count() == 1);
IEnumerable<object> enumerable = o.AsEnumerableValue()!;
Assert.IsNotNull(enumerable);
Assert.IsTrue(enumerable.Count() == 1);
}
[TestMethod]
@ -45,8 +45,9 @@ public class CoreTests
[DataRow(true)]
public void AsEnumerableValue_ShouldContainValue_Given_Value(object o)
{
IEnumerable<object> array = o.AsEnumerableValue()!;
Assert.IsNotNull(array);
Assert.AreEqual(o, array.ElementAt(0));
IEnumerable<object> enumerable = o.AsEnumerableValue()!;
Assert.IsNotNull(enumerable);
Assert.AreEqual(o, enumerable.ElementAt(0));
}
}
}