From 2747bfddba76794c67d26a0eb111f6aa27ad4f21 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Fri, 13 Aug 2021 10:17:52 +0000 Subject: [PATCH] Update dependency FluentAssertions to v6 --- .../ReflectionBasedDestructurerTest.cs | 24 +++++++++---------- .../Serilog.Exceptions.Test.csproj | 2 +- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/Tests/Serilog.Exceptions.Test/Destructurers/ReflectionBasedDestructurerTest.cs b/Tests/Serilog.Exceptions.Test/Destructurers/ReflectionBasedDestructurerTest.cs index 7c6fcc18..a5b27688 100644 --- a/Tests/Serilog.Exceptions.Test/Destructurers/ReflectionBasedDestructurerTest.cs +++ b/Tests/Serilog.Exceptions.Test/Destructurers/ReflectionBasedDestructurerTest.cs @@ -102,10 +102,10 @@ public async Task CanDestructureTaskAsync() var destructuredTaskProperties = Assert.IsAssignableFrom>(destructuredTaskObject); destructuredTaskProperties.Should().ContainKey(nameof(Task.Id)); destructuredTaskProperties.Should().ContainKey(nameof(Task.Status)) - .WhichValue.Should().BeOfType() + .WhoseValue.Should().BeOfType() .Which.Should().Be(nameof(TaskStatus.Canceled)); destructuredTaskProperties.Should().ContainKey(nameof(Task.CreationOptions)) - .WhichValue.Should().BeOfType() + .WhoseValue.Should().BeOfType() .Which.Should().Contain(nameof(TaskCreationOptions.None)); } @@ -124,23 +124,23 @@ public void CanDestructureFaultedTask() var destructuredTaskProperties = Assert.IsAssignableFrom>(destructuredTaskObject); destructuredTaskProperties.Should().ContainKey(nameof(Task.Id)); destructuredTaskProperties.Should().ContainKey(nameof(Task.Status)) - .WhichValue.Should().BeOfType() + .WhoseValue.Should().BeOfType() .Which.Should().Be(nameof(TaskStatus.Faulted)); destructuredTaskProperties.Should().ContainKey(nameof(Task.CreationOptions)) - .WhichValue.Should().BeOfType() + .WhoseValue.Should().BeOfType() .Which.Should().Be(nameof(TaskCreationOptions.None)); var taskFirstLevelExceptionDictionary = destructuredTaskProperties.Should().ContainKey(nameof(Task.Exception)) - .WhichValue.Should().BeAssignableTo>() + .WhoseValue.Should().BeAssignableTo>() .Which; taskFirstLevelExceptionDictionary.Should().ContainKey("Message") - .WhichValue.Should().BeOfType() + .WhoseValue.Should().BeOfType() .Which.Should().Contain("One or more errors occurred.", "task's first level exception is aggregate exception"); taskFirstLevelExceptionDictionary.Should().ContainKey("InnerExceptions") - .WhichValue.Should().BeAssignableTo>() + .WhoseValue.Should().BeAssignableTo>() .Which.Should().ContainSingle() .Which.Should().BeAssignableTo>() .Which.Should().ContainKey("Message") - .WhichValue.Should().BeOfType() + .WhoseValue.Should().BeOfType() .Which.Should().Be("INNER EXCEPTION MESSAGE"); } @@ -342,16 +342,16 @@ public void WhenObjectContainsCyclicReferencesInTask_ThenRecursiveDestructureIsI var resultsDictionary = result.GetResultDictionary(); var destructuredTask = resultsDictionary[nameof(CyclicTaskException.Task)].Should().BeAssignableTo>().Which; var destructuredCyclicException = destructuredTask.Should().ContainKey(nameof(Task.Exception)) - .WhichValue.Should().BeAssignableTo>() + .WhoseValue.Should().BeAssignableTo>() .Which.Should().ContainKey(nameof(AggregateException.InnerExceptions)) - .WhichValue.Should().BeAssignableTo>() + .WhoseValue.Should().BeAssignableTo>() .Which.Should().ContainSingle() .Which.Should().BeAssignableTo>().Which; destructuredCyclicException.Should().ContainKey(nameof(Exception.Message)) - .WhichValue.Should().BeOfType() + .WhoseValue.Should().BeOfType() .Which.Should().Contain(nameof(CyclicTaskException)); destructuredCyclicException.Should().ContainKey(nameof(CyclicTaskException.Task)) - .WhichValue.Should().BeAssignableTo>() + .WhoseValue.Should().BeAssignableTo>() .Which.Should().ContainKey("$ref", "task was already destructured, so inner task should just contain ref"); } diff --git a/Tests/Serilog.Exceptions.Test/Serilog.Exceptions.Test.csproj b/Tests/Serilog.Exceptions.Test/Serilog.Exceptions.Test.csproj index ae722951..0549eef9 100644 --- a/Tests/Serilog.Exceptions.Test/Serilog.Exceptions.Test.csproj +++ b/Tests/Serilog.Exceptions.Test/Serilog.Exceptions.Test.csproj @@ -15,7 +15,7 @@ - +