public void IsNotInterfaceType() { Assert.ThrowsExact <ArgumentNullException>(() => Assert.IsNotInterfaceType(null as Type)); Assert.DoesNotThrow(() => Assert.IsNotInterfaceType <string>()); Assert.DoesNotThrow(() => Assert.IsNotInterfaceType <long>()); Assert.DoesNotThrow(() => Assert.IsNotInterfaceType <AttributeTargets>()); Assert.DoesNotThrow(() => Assert.IsNotInterfaceType <List <int> >()); Assert.DoesNotThrow(() => Assert.IsNotInterfaceType <int[]>()); Assert.ThrowsExact <AssertionException>(() => Assert.IsNotInterfaceType <IEnumerable <int> >()); Assert.DoesNotThrow(() => Assert.IsNotInterfaceType(typeof(string))); Assert.DoesNotThrow(() => Assert.IsNotInterfaceType(typeof(long))); Assert.DoesNotThrow(() => Assert.IsNotInterfaceType(typeof(AttributeTargets))); Assert.DoesNotThrow(() => Assert.IsNotInterfaceType(typeof(List <int>))); Assert.DoesNotThrow(() => Assert.IsNotInterfaceType(typeof(int[]))); Assert.ThrowsExact <AssertionException>(() => Assert.IsNotInterfaceType(typeof(IEnumerable <int>))); }