mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-04-12 03:57:32 +00:00
test: Adding test case for minimal interfaces
This commit is contained in:
parent
99945b41a4
commit
48ff54de82
1 changed files with 9 additions and 1 deletions
|
|
@ -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")]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue