Skip to content

Commit c08282b

Browse files
committed
csharp: Add test ensuring unknown keys are ignored
1 parent b441ed0 commit c08282b

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

csharp/Svix.Tests/WiremockTests.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,5 +361,17 @@ public void ClientProvidedIdempotencyKeyIsNotOverridden()
361361
);
362362
Assert.Equal(1, stub.LogEntries.Count);
363363
}
364+
365+
[Fact]
366+
public void UnknownKeysAreIgnored()
367+
{
368+
var res = """{"data": [],"iterator": "iterator","prevIterator": "-iterator","done": true,"extra-field": "ignored"}""";
369+
stub.Given(Request.Create().WithPath("/api/v1/app"))
370+
.RespondWith(Response.Create().WithStatusCode(200).WithBody(res));
371+
372+
373+
client.Application.List();
374+
}
375+
364376
}
365377
}

0 commit comments

Comments
 (0)