Exemplo n.º 1
0
        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);
            }
        }
Exemplo n.º 2
0
 //[Fact]
 public void GivenThatTheExpectedValueIsDifferentThanTheExpectedFile_ItShowsTheDiffTool()
 {
     DiffAssert.ThatContentsOf("DiffAssertTests/LocalDiffTest").Equals("Not the expected value");
 }
Exemplo n.º 3
0
 public void GivenThatTheActualValueEqualsTheValueInTheExpectedFile_ItPassesTheTest()
 {
     DiffAssert
     .ThatContentsOf("DiffAssertTests/FileWithContentThatShouldMatchTheActualValue")
     .Equals("The actual value");
 }