public bool IsTypeOfTest <T>(T value, Type typeComparison) { bool result = TypeTestingUtility.IsTypeOf <T>(value, typeComparison); return(result); // TODO: add assertions to method TypeTestingUtilityTests.IsTypeOfTest(!!0, Type) }
/// <summary> /// Checks if the <paramref name="value"/> type is equal to the <paramref name="typeComparison"/>. /// </summary> /// <typeparam name="T">The type to test.</typeparam> /// <param name="value">The <typeparamref name="T"/> to check.</param> /// <param name="typeComparison">The type to compare <paramref name="value"/> to.</param> /// <returns> /// <see langword="true"/> if the <paramref name="value"/> type is equal to the <paramref name="typeComparison"/>; otherwise, <see langword="false"/>. /// </returns> public static Boolean IsTypeOf <T>([CanBeNull] this T value, [CanBeNull] Type typeComparison) { return(TypeTestingUtility.IsTypeOf(value, typeComparison)); }