public void An_Error_Is_Not_Logged_If_The_Output_File_Has_The_Same_Name_But_A_Different_Location_To_An_Input_File() { // Arange var compressor = CreateCompressorTask(); compressor.SourceFiles = new ITaskItem[] { new TaskItem("SomeDir\\Different.js"), new TaskItem("SomeOtherDir\\Same.js") }; compressor.OutputFile = "SomeDir\\Same.js"; // Act compressor.Execute(); // Assert Assert.That(BuildEngine.DoesNotContainError(compressor.BuildEngine, ("Output file cannot be the same as source file(s)."))); }