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

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