From f2d32fd3555f3b488d8a2cc7eb937878d2830ced Mon Sep 17 00:00:00 2001 From: Chris Cameron Date: Thu, 19 Jul 2018 15:54:16 -0400 Subject: [PATCH] test: Updating TypeExtensionsTest --- .../Extensions/TypeExtensionsTest.cs | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/ICD.Common.Utils.Tests/Extensions/TypeExtensionsTest.cs b/ICD.Common.Utils.Tests/Extensions/TypeExtensionsTest.cs index f6450bb..0ee9073 100644 --- a/ICD.Common.Utils.Tests/Extensions/TypeExtensionsTest.cs +++ b/ICD.Common.Utils.Tests/Extensions/TypeExtensionsTest.cs @@ -86,6 +86,12 @@ namespace ICD.Common.Utils.Tests.Extensions Assert.AreEqual(expected, value.IsIntegerNumeric()); } + [Test] + public void GetAssemblyTest() + { + Assert.Inconclusive(); + } + [TestCase(typeof(string), typeof(object), true)] [TestCase(typeof(object), typeof(string), false)] public void IsAssignableToTest(Type a, Type b, bool expected) @@ -134,6 +140,27 @@ namespace ICD.Common.Utils.Tests.Extensions Assert.AreEqual(typeof(IEnumerable), interfaces[0]); } + [Test] + public void GetMinimalInterfacesTest() + { + Assert.Inconclusive(); + } + + [TestCase(typeof(int), "Int32")] + [TestCase(typeof(List), "List")] + public void GetNameWithoutGenericArityTest(Type type, string expected) + { + Assert.AreEqual(expected, type.GetNameWithoutGenericArity()); + } + + [TestCase(typeof(string), "string")] + [TestCase(typeof(int?), "int?")] + [TestCase(typeof(List), "List")] + public void GetSyntaxNameTest(Type type, string expected) + { + Assert.AreEqual(expected, type.GetSyntaxName()); + } + private interface C { }