mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-02-16 05:05:05 +00:00
test: Adding test case for minimal interfaces
This commit is contained in:
@@ -145,7 +145,15 @@ namespace ICD.Common.Utils.Tests.Extensions
|
|||||||
[Test]
|
[Test]
|
||||||
public void GetMinimalInterfacesTest()
|
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")]
|
[TestCase(typeof(int), "Int32")]
|
||||||
|
|||||||
Reference in New Issue
Block a user