/// <summary> /// Asserts if the value equals the contents of the specified expected file /// </summary> /// <param name="actualValue">The value you want to compare to the expected file</param> public void Equals(string actualValue) { _diffAsserter.CompareExpectedFileWithActualValue(_nameOfFileWithExpectedResult, actualValue); }
/// <summary> /// Compares the content of a file (the expected result) with a string that is the actual value. /// </summary> /// <param name="nameOfFileWithExpectedResult">The file name with all folders relative to the test project root but without the .expected.txt suffix. /// Example: "SomeDirectory/TheFileName"</param> /// <param name="actualValue">The actual value produced by the test</param> public static void ThatExpectedFileContentsEqualsActualValue(string nameOfFileWithExpectedResult, string actualValue) { DiffAsserter.CompareExpectedFileWithActualValue(nameOfFileWithExpectedResult, actualValue); }