Skip to content

Commit

Permalink
(no ticket) netstd testcase for THRIFT-5835
Browse files Browse the repository at this point in the history
Client: netstd
Patch: Jens Geyer
  • Loading branch information
Jens-G committed Nov 26, 2024
1 parent 24ed1d1 commit 45b1868
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/netstd/Tests/Thrift.Tests/DataModel/ExceptionAsStruct.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 42,9 @@ public async Task Test_Serialize_Deserialize()
VerifyIdenticalContent(checking, initial);
}

private string FormatKey(int i) => $"Test {i}";
private static string FormatKey(int i) => $"Test {i}";

private BatchGetResponse CreateInitialData()
private static BatchGetResponse CreateInitialData()
{
var initial = new BatchGetResponse()
{
Expand All @@ -63,7 63,7 @@ private BatchGetResponse CreateInitialData()
return initial;
}

private async Task<T> WriteAndReadBack<T>(T input) where T : TBase,new()
private static async Task<T> WriteAndReadBack<T>(T input) where T : TBase,new()
{
var stream = new MemoryStream();
var config = new TConfiguration();
Expand All @@ -83,7 83,7 @@ private async Task<T> WriteAndReadBack<T>(T input) where T : TBase,new()
return output;
}

private void VerifyIdenticalContent(BatchGetResponse left, BatchGetResponse right)
private static void VerifyIdenticalContent(BatchGetResponse left, BatchGetResponse right)
{
// Errors
Assert.IsNotNull(left.Errors);
Expand Down

0 comments on commit 45b1868

Please sign in to comment.