Skip to content

Commit

Permalink
Fixed a broken test case.
Browse files Browse the repository at this point in the history
  • Loading branch information
lextm committed Oct 31, 2023
1 parent 4f0dbbe commit ecc6c7c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Tests/CSharpCore/Unit/OperationExceptionTestFixture.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,12 @@ public void TestConstructorWithSerializationInfoAndStreamingContext()
info.AddValue("HelpURL", null);
info.AddValue("StackTraceString", null);
info.AddValue("RemoteStackTraceString", null);
info.AddValue("HResult", 0);
info.AddValue("HResult", -2146233088);
info.AddValue("Source", null);
info.AddValue("Agent", null);
info.AddValue("ClassName", typeof(OperationException).FullName);
info.AddValue("RemoteStackIndex", 0);
info.AddValue("ExceptionMethod", null);
var context = new StreamingContext();
var ex = new OperationException(info, context);
Assert.Equal("Operation failed.", ex.Message);
Expand Down

0 comments on commit ecc6c7c

Please sign in to comment.