Skip to content

Commit 453786b

Browse files
Merge pull request #52 from Bandwidth/DX-2581
DX-2581 Updated packages Newtonsoft.Json and System.Xml.XmlSerializer
2 parents 877b7ba + 4df0a10 commit 453786b

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

Bandwidth.Standard/Bandwidth.Standard.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,9 @@
2121
</PropertyGroup>
2222

2323
<ItemGroup>
24-
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
24+
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
2525
<PackageReference Include="System.Xml.XmlSerializer" Version="4.3.0" />
26+
<PackageReference Include="System.Text.RegularExpressions" Version="4.3.1" />
2627
<PackageReference Include="Polly" Version="7.2.1" />
2728
<PackageReference Include="System.Collections.Immutable" Version="1.5.0" />
2829
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleTo">

Bandwidth.StandardTests/PhoneNumberLookup/LookupTests.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,12 @@ public async Task GetTnLookupResultAsync()
7878
Assert.Equal(formattedNumber, resultResponse.Data.Result.First().Formatted);
7979
}
8080

81+
string lineProvider = resultResponse.Data.Result.First().LineProvider;
82+
8183
Assert.Equal(0, resultResponse.Data.Result.First().ResponseCode);
8284
Assert.Equal("US", resultResponse.Data.Result.First().Country);
8385
Assert.Equal("Mobile", resultResponse.Data.Result.First().LineType);
84-
Assert.Equal("Bandwidth", resultResponse.Data.Result.First().LineProvider);
86+
Assert.Contains("Bandwidth", lineProvider);
8587
Assert.Null(resultResponse.Data.Result.First().MobileCountryCode);
8688
Assert.Null(resultResponse.Data.Result.First().MobileNetworkCode);
8789
}

0 commit comments

Comments
 (0)