diff --git a/STX.EFxceptions.SqlServer.Base.Tests.Unit/Services/Foundations/SqlServerEFxceptionServiceTests.Validations.cs b/STX.EFxceptions.SqlServer.Base.Tests.Unit/Services/Foundations/SqlServerEFxceptionServiceTests.Validations.cs index 42c62cd..1b9d6c1 100644 --- a/STX.EFxceptions.SqlServer.Base.Tests.Unit/Services/Foundations/SqlServerEFxceptionServiceTests.Validations.cs +++ b/STX.EFxceptions.SqlServer.Base.Tests.Unit/Services/Foundations/SqlServerEFxceptionServiceTests.Validations.cs @@ -30,12 +30,12 @@ public void ShouldThrowDbUpdateExceptionIfSqlExceptionIsNull() .BeEquivalentTo( expectation: expectedDbUpdateException, config: options => options - .Excluding(ex => ex.TargetSite) - .Excluding(ex => ex.StackTrace) - .Excluding(ex => ex.Source) - .Excluding(ex => ex.InnerException.TargetSite) - .Excluding(ex => ex.InnerException.StackTrace) - .Excluding(ex => ex.InnerException.Source)); + .Excluding(ex => ex.TargetSite) + .Excluding(ex => ex.StackTrace) + .Excluding(ex => ex.Source) + .Excluding(ex => ex.InnerException.TargetSite) + .Excluding(ex => ex.InnerException.StackTrace) + .Excluding(ex => ex.InnerException.Source)); this.sqlServerErrorBrokerMock.Verify(broker => broker.GetErrorCode(It.IsAny()), diff --git a/STX.EFxceptions.SqlServer.Base.Tests.Unit/Services/Foundations/SqlServerEFxceptionServiceTests.cs b/STX.EFxceptions.SqlServer.Base.Tests.Unit/Services/Foundations/SqlServerEFxceptionServiceTests.cs index d45dd17..277599a 100644 --- a/STX.EFxceptions.SqlServer.Base.Tests.Unit/Services/Foundations/SqlServerEFxceptionServiceTests.cs +++ b/STX.EFxceptions.SqlServer.Base.Tests.Unit/Services/Foundations/SqlServerEFxceptionServiceTests.cs @@ -41,8 +41,8 @@ private SqlException CreateSqlException(string message, int errorCode) messageField.SetValue(sqlException, message); FieldInfo errorCodeField = typeof(SqlException).GetField( - name: "_errorCode", - bindingAttr: BindingFlags.Instance | BindingFlags.NonPublic); + name: "_errorCode", + bindingAttr: BindingFlags.Instance | BindingFlags.NonPublic); if (errorCodeField != null) errorCodeField.SetValue(sqlException, errorCode);