test: Adding test case for minimal interfaces

This commit is contained in:
Chris Cameron
2020-07-02 14:32:11 -04:00
parent 99945b41a4
commit 48ff54de82

View File

@@ -145,7 +145,15 @@ namespace ICD.Common.Utils.Tests.Extensions
[Test]
public void GetMinimalInterfacesTest()
{
Assert.Inconclusive();
Type[] interfaces = typeof(ICollection<int>).GetMinimalInterfaces().ToArray();
Assert.AreEqual(1, interfaces.Length);
Assert.AreEqual(typeof(IEnumerable<int>), interfaces[0]);
interfaces = typeof(IEnumerable<int>).GetMinimalInterfaces().ToArray();
Assert.AreEqual(1, interfaces.Length);
Assert.AreEqual(typeof(IEnumerable), interfaces[0]);
}
[TestCase(typeof(int), "Int32")]