public void IsValueType_PrimitiveTypeNameProvided_TrueReturned() { TestConverter converter = new TestConverter(); bool result = converter.TestIsValueType(typeof(int).AssemblyQualifiedName); Assert.IsTrue(result); }
public void IsValueType_EnumTypeProvided_TrueReturned() { TestConverter converter = new TestConverter(); bool result = converter.TestIsValueType(typeof(StringComparison)); Assert.IsTrue(result); }
public void IsValueType_ReferenceTypeProvided_FalseReturned() { TestConverter converter = new TestConverter(); bool result = converter.TestIsValueType(typeof(IList)); Assert.IsFalse(result); }
public void IsValueType_DateTimeTypeProvided_TrueReturned() { TestConverter converter = new TestConverter(); bool result = converter.TestIsValueType(typeof(DateTime)); Assert.IsTrue(result); }
public void IsValueType_NullProvided_FalseReturned() { TestConverter converter = new TestConverter(); bool result = converter.TestIsValueType(null as Type); Assert.IsFalse(result); }