Valentin Breuß

Results 29 issues of Valentin Breuß

Fixes #870: Change the order when moving files: 1. Remove the previous file (throws an exception, if the file access is not sufficient) 2. Add the moved file on the...

Implements #872 Adjust `CreationTime`, `LastAccessTime` and `LastWriteTime` when interacting with files in the `MockFileSystem`. Provides a means to mock the used DateTime by calling e.g. ```csharp var fixedTime = new...

**Is your feature request related to a problem? Please describe.** I want to test a functionality that relies on the "GetLastWriteTimeUtc" method to detect when a file was last changed....

type: enhancement
state: ready
area: testinghelpers

**Describe the bug** Moving a readonly file throws (correctly) an UnauthorizedAccessException, but afterwards both the source file and also the target file exist. **To Reproduce** Consider the following unit test...

type: bug
state: in work
area: testinghelpers

**Observing Changes** *Implements #805* Allows registering a callback to be executed whenever a file or directory event is triggered in the file system: ```csharp var fs = new MockFileSystem() .OnFileEvent(f...

**Describe the bug** When comparing the behaviour of `MockFileSystem.FileStream.Create` with the the behaviour of the real file system (constructor of `FileStream`), some edge cases are not implemented correctly. The following...

type: bug
state: ready
area: testinghelpers

Add the following options to the `EquivalencyAssertionOptions` for strings ```C# public EquivalencyAssertionOptions IgnoringAllNewlines() { // This will remove all newlines from actual and expected before comparison return this; } public...

enhancement

### Background and motivation As discussed in #2205 we want support for `System.Text.Json`. I would suggest to keep it as similar as possible to the existing extension package [`FluentAssertions.Json`](https://github.com/fluentassertions/fluentassertions.json). ###...

api-suggestion

Draft for #2556 Add the following methods to the `StringAssertions` (similar to [`StringAssertionsExtensions` in `FluentAssertions.Json`](https://github.com/fluentassertions/fluentassertions.json/blob/master/Src/FluentAssertions.Json/StringAssertionsExtensions.cs)): ```csharp public AndWhichConstraint BeValidJson(string because = "", params object[] becauseArgs); public AndWhichConstraint BeValidJson(JsonDocumentOptions options, string...

### Background and motivation Remaining issue from #2364 *(see [this comment](https://github.com/fluentassertions/fluentassertions/issues/2364#issuecomment-1801924587) for more details)* This should also fix #1247 ### API Proposal Add the following options to the `EquivalencyAssertionOptions` for...

api-suggestion