Beispiel #1
0
        public void CanConvertFrom_NotGenericType_ReturnsFalse()
        {
            bool result = GenericType.CanConvertFrom(typeof(int));

            Assert.That(result, Is.False);
        }
Beispiel #2
0
        public void CanConvertFrom_GenericType_ReturnsTrue()
        {
            bool result = GenericType.CanConvertFrom(typeof(GenericA <A>));

            Assert.That(result, Is.True);
        }
Beispiel #3
0
        public void CanConvertFrom_Null_ReturnsFalse()
        {
            bool result = GenericType.CanConvertFrom(null);

            Assert.That(result, Is.False);
        }