Skip to content

Commit

Permalink
refactor: add missing assertion in parser test (#515)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tr00d authored Sep 18, 2023
1 parent 743f4de commit 8a067f6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Vonage.Test.Unit/WebhookParserTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
using System.IO;
using System.Net.Http;
using System.Text;
using FluentAssertions;
using Microsoft.Extensions.Primitives;
using Newtonsoft.Json;
using Xunit;
Expand Down Expand Up @@ -61,7 +62,8 @@ public void TestParseQueryArgsCore()
{
var queryArgs = new List<KeyValuePair<string, StringValues>>();
queryArgs.Add(new KeyValuePair<string, StringValues>("foo-bar", "foo"));
Utility.WebhookParser.ParseQuery<Foo>(queryArgs);
var value = Utility.WebhookParser.ParseQuery<Foo>(queryArgs);
value.FooBar.Should().Be("foo");
}

[Fact]
Expand Down

0 comments on commit 8a067f6

Please sign in to comment.