public void IsNotArrayType() { Assert.ThrowsExact <ArgumentNullException>(() => Assert.IsNotArrayType(null as object)); Assert.ThrowsExact <ArgumentNullException>(() => Assert.IsNotArrayType(null as Type)); Assert.DoesNotThrow(() => Assert.IsNotArrayType("hello")); Assert.DoesNotThrow(() => Assert.IsNotArrayType(1L)); Assert.DoesNotThrow(() => Assert.IsNotArrayType(AttributeTargets.All)); Assert.DoesNotThrow(() => Assert.IsNotArrayType(new List <int>())); Assert.ThrowsExact <AssertionException>(() => Assert.IsNotArrayType(new int[0])); Assert.DoesNotThrow(() => Assert.IsNotArrayType <string>()); Assert.DoesNotThrow(() => Assert.IsNotArrayType <long>()); Assert.DoesNotThrow(() => Assert.IsNotArrayType <AttributeTargets>()); Assert.DoesNotThrow(() => Assert.IsNotArrayType <List <int> >()); Assert.ThrowsExact <AssertionException>(() => Assert.IsNotArrayType <int[]>()); Assert.DoesNotThrow(() => Assert.IsNotArrayType <IEnumerable <int> >()); Assert.DoesNotThrow(() => Assert.IsNotArrayType(typeof(string))); Assert.DoesNotThrow(() => Assert.IsNotArrayType(typeof(long))); Assert.DoesNotThrow(() => Assert.IsNotArrayType(typeof(AttributeTargets))); Assert.DoesNotThrow(() => Assert.IsNotArrayType(typeof(List <int>))); Assert.ThrowsExact <AssertionException>(() => Assert.IsNotArrayType(typeof(int[]))); Assert.DoesNotThrow(() => Assert.IsNotArrayType(typeof(IEnumerable <int>))); }