Skip to content

Release files #33

@nicostubi

Description

@nicostubi

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions