public void CreateArray_WithNoParameters_ExpectZeroLengthArray() { var array = Reflect.CreateArray(typeof(double)); Assert.AreEqual(0, array.Length); Assert.IsTrue(array.GetType() == typeof(double[])); }
public void IsNullable_NullableType_ExpectTrue() { Assert.IsTrue(Reflect.IsNullable(typeof(bool?))); }
public void IsNullable_NonNullableType_ExpectFalse() { Assert.IsFalse(Reflect.IsNullable(typeof(bool))); }