public void GivenThatTheTestIsRunOnTheBuildServer_ThenItChecksForTheExpectedFilesInTheOutputDirectory() { try { Environment.SetEnvironmentVariable("DISABLE_DIFF_ASSERTIONS", "0"); DiffAssert .ThatContentsOf("DiffAssertTests/BuildServerTest") .Equals("Works on build server if the file is marked as Copy always"); } finally { Environment.SetEnvironmentVariable("DISABLE_DIFF_ASSERTIONS", null); } }
//[Fact] public void GivenThatTheExpectedValueIsDifferentThanTheExpectedFile_ItShowsTheDiffTool() { DiffAssert.ThatContentsOf("DiffAssertTests/LocalDiffTest").Equals("Not the expected value"); }
public void GivenThatTheActualValueEqualsTheValueInTheExpectedFile_ItPassesTheTest() { DiffAssert .ThatContentsOf("DiffAssertTests/FileWithContentThatShouldMatchTheActualValue") .Equals("The actual value"); }