From 48ff54de8256c976431d23cbc862f22d1acab9ad Mon Sep 17 00:00:00 2001 From: Chris Cameron Date: Thu, 2 Jul 2020 14:32:11 -0400 Subject: [PATCH] test: Adding test case for minimal interfaces --- .../Extensions/TypeExtensionsTest.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/ICD.Common.Utils.Tests/Extensions/TypeExtensionsTest.cs b/ICD.Common.Utils.Tests/Extensions/TypeExtensionsTest.cs index 226bee3..0283e66 100644 --- a/ICD.Common.Utils.Tests/Extensions/TypeExtensionsTest.cs +++ b/ICD.Common.Utils.Tests/Extensions/TypeExtensionsTest.cs @@ -145,7 +145,15 @@ namespace ICD.Common.Utils.Tests.Extensions [Test] public void GetMinimalInterfacesTest() { - Assert.Inconclusive(); + Type[] interfaces = typeof(ICollection).GetMinimalInterfaces().ToArray(); + + Assert.AreEqual(1, interfaces.Length); + Assert.AreEqual(typeof(IEnumerable), interfaces[0]); + + interfaces = typeof(IEnumerable).GetMinimalInterfaces().ToArray(); + + Assert.AreEqual(1, interfaces.Length); + Assert.AreEqual(typeof(IEnumerable), interfaces[0]); } [TestCase(typeof(int), "Int32")]