/// <summary> /// Asserts that an object may not be assigned a value of a given <see cref="Type"/>. /// </summary> /// <param name="value">The value to be tested.</param> /// <param name="expectedType">The expected <see cref="Type"/>.</param> /// <param name="message">A message to display. This message can be seen in the unit test results.</param> public static void IsNotAssignableFrom(object value, Type expectedType, string message) { TypeAssert.IsNotAssignableFrom(value, expectedType, message, null); }
/// <summary> /// Asserts that an object may not be assigned a value of a given <see cref="Type"/>. /// </summary> /// <param name="value">The value to be tested.</param> /// <param name="expectedType">The expected <see cref="Type"/>.</param> public static void IsNotAssignableFrom(object value, Type expectedType) { TypeAssert.IsNotAssignableFrom(value, expectedType, Strings.Assertion_ExpectedToBeAssignableFrom, value, expectedType); }