Catel.Test.Reflection.ReflectionExtensionsFacts.TheIsInstanceOfTypeExMethod.ReturnsFalseForNonInheritingReferenceType C# (CSharp) Méthode

ReturnsFalseForNonInheritingReferenceType() private méthode

private ReturnsFalseForNonInheritingReferenceType ( ) : void
Résultat void
            public void ReturnsFalseForNonInheritingReferenceType()
            {
                var type = typeof(Exception);
                var instance = new EventArgs();

                Assert.IsFalse(type.IsInstanceOfTypeEx(instance));
            }