-
Notifications
You must be signed in to change notification settings - Fork 16
Closed
Labels
Milestone
Description
Hello,
I am totally new to this package.
I have been able to successfully compare two XML files based on the following code:
Diff myDiff = DiffBuilder.Compare(Input.FromFile(expected)).WithTest(Input.FromFile(result)).Build(); // assert Assert.False(myDiff.HasDifferences(), myDiff.ToString());
In the Dispose() method of my test class, I want to get rid of the tested file.
public void Dispose() { foreach (var testFile in testFiles) { File.Delete(testFile); } }
I get the folllowing error:
The process cannot access the file 'C:\Projects....xml' because it is being used by another process.
I see that DiffBuilder is not disposable.
BR
Nicolas