Esempio n. 1
0
 public void IsPrimitiveWithGeneric_ForReferenceTypesShouldReturnFalse()
 {
     foreach (var type in _referenceTypes)
     {
         Assert.False(PrimitiveTypeUtils.IsPrimitiveWithGeneric(type));
     }
 }
Esempio n. 2
0
        public void IsPrimitiveWithGeneric_ForPrimitiveTypesShouldReturnTrue()
        {
            var combined = _primitiveGenericTypes.Concat(_primitiveTypes);

            foreach (var type in combined)
            {
                Assert.True(PrimitiveTypeUtils.IsPrimitiveWithGeneric(type));
            }
        }