public void ToStringWithParameterRecursesAcrossAllNodes() { // ReSharper disable once ImpureMethodCallOnReadonlyValueField Assert.Equal(@"FAILED: Branch1 Passed: Successful Leaf FAILED: Branch2 FAILED: InnerLeaf1 Passed: InnerLeaf2 FAILED: Failed Leaf Passed: Branch Passed: Success1 Passed: Success2 Passed: Empty Branch", _sut.ToString(true)); }
private void VerifyComplete(IAsyncResult ar) { VerificationResult verificationResult = _verificationScu.EndVerify(ar); Logger.LogInfo("Verify result: " + verificationResult.ToString()); SetVerifyButton(false); }
public override string ToString() { var sb = new StringBuilder("PhoneVerificationResult("); bool __first = true; if (__isset.verificationResult) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("VerificationResult: "); VerificationResult.ToString(sb); } if (__isset.accountMigrationCheckType) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("AccountMigrationCheckType: "); AccountMigrationCheckType.ToString(sb); } if (__isset.recommendAddFriends) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("RecommendAddFriends: "); RecommendAddFriends.ToString(sb); } sb.Append(")"); return(sb.ToString()); }
public void ReturnCorrectFailureString() { Assert.Equal("FAILED: Failed Leaf", _failureLeaf.ToString()); }
public void ReturnCorrectSuccessString() { Assert.Equal("Passed: Successful Leaf", _successLeaf.ToString()); }
/// <summary> /// Asserts that the verifications in this group are all successful, throws a /// <see cref="VerificationFailedException" /> otherwise. /// </summary> /// <param name="provider"> /// An object that supplies culture-specific formatting information. Defaults to the current culture. /// </param> /// <param name="includeSuccessfulVerifications">Whether to include successful verifications in the exception if thrown.</param> public void Assert(bool includeSuccessfulVerifications = false, IFormatProvider?provider = null) { VerificationResult result = VerifyGroup(provider); if (!result.Success) { var message = "Verification failed." + Environment.NewLine + Environment.NewLine + result.ToString(includeSuccessfulVerifications); throw new VerificationFailedException(result, message); } }