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