<commit_before>﻿using System;

namespace TDDUnit {
  class Assert {
    public static void Equal(object expected, object actual) {
      if (!expected.Equals(actual)) {
        string message = string.Format("Expected: '{0}'; Actual: '{1}'", expected, actual);
        Console.WriteLine(message);
        throw new TestRunException(message);
      }
    }

    public static void NotEqual(object expected, object actual) {
      if (expected.Equals(actual)) {
        string message = string.Format("Expected: Not '{0}'; Actual: '{1}'", expected, actual);
        Console.WriteLine(message);
        throw new TestRunException(message);
      }
    }

    public static void That(bool condition) {
      Equal(true, condition);
    }
  }
}
<commit_msg>Refactor the error caused by a failing assertion<commit_after>﻿using System;

namespace TDDUnit {
  class Assert {
    private static void Fail(object expected, object actual) {
      string message = string.Format("Expected: '{0}'; Actual: '{1}'", expected, actual);
      Console.WriteLine(message);
      throw new TestRunException(message);
    }

    public static void Equal(object expected, object actual) {
      if (!expected.Equals(actual)) {
        Fail(expected, actual);
      }
    }

    public static void NotEqual(object expected, object actual) {
      if (expected.Equals(actual)) {
        Fail(expected, actual);
      }
    }

    public static void That(bool condition) {
      Equal(true, condition);
    }
  }
}

{'fraction_non_alphanumeric': 0.11946308724832215, 'fraction_numerical': 0.004026845637583893, 'mean_word_length': 2.986631016042781, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '29816', 'n_tokens_mistral': 415, 'n_tokens_neox': 405, 'n_words': 117}