/// <summary> /// Verifies that the specified condition is <see langword="false"/>. /// The assertion fails if the condition is <see langword="true"/>. /// Displays a message if the assertion fails. /// </summary> /// <param name="condition">The condition to verify is <see langword="false"/>.</param> /// <param name="message">A message to display if the assertion fails. This message can be seen in the unit test results.</param> /// <exception cref="Microsoft.VisualStudio.TestTools.UnitTesting.AssertFailedException"> /// <paramref name="condition"/> evaluates to <see langword="true"/>.</exception> public static void IsFalse(bool?condition, string message) { ConditionAssert.IsFalse(condition, message, null); }
/// <summary> /// Verifies that the specified condition is <see langword="false"/>. /// The assertion fails if the condition is <see langword="true"/>. /// </summary> /// <param name="condition">The condition to verify is <see langword="false"/>.</param> /// <exception cref="Microsoft.VisualStudio.TestTools.UnitTesting.AssertFailedException"> /// <paramref name="condition"/> evaluates to <see langword="true"/>.</exception> public static void IsFalse(bool?condition) { ConditionAssert.IsFalse(condition, Strings.Assertion_GenericFailure, true, condition); }