Skip to content

Commit 38486ca

Browse files
authored
Update nuget packages. (#33)
1 parent e90dda2 commit 38486ca

7 files changed

Lines changed: 21 additions & 21 deletions

File tree

src/Winton.Extensions.Configuration.Consul/Winton.Extensions.Configuration.Consul.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@
3131
</ItemGroup>
3232

3333
<ItemGroup>
34-
<PackageReference Include="Consul" Version="0.7.2.3" />
35-
<PackageReference Include="GitVersionTask" Version="4.0.0-beta0011" PrivateAssets="All" />
34+
<PackageReference Include="Consul" Version="0.7.2.4" />
35+
<PackageReference Include="GitVersionTask" Version="4.0.0-beta0012" PrivateAssets="All" />
3636
<PackageReference Include="Microsoft.Extensions.Configuration" Version="2.0.0" />
37-
<PackageReference Include="Newtonsoft.Json" Version="10.0.3" />
37+
<PackageReference Include="Newtonsoft.Json" Version="11.0.1" />
3838
<PackageReference Include="StyleCop.Analyzers" Version="1.0.2" PrivateAssets="All" />
3939
</ItemGroup>
4040

test/Website/Website.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<ItemGroup>
2020
<PackageReference Include="Microsoft.AspNetCore.All" Version="2.0.5" />
2121
<PackageReference Include="StyleCop.Analyzers" Version="1.0.2" PrivateAssets="All" />
22-
<PackageReference Include="Swashbuckle.AspNetCore" Version="1.1.0" />
22+
<PackageReference Include="Swashbuckle.AspNetCore" Version="2.2.0" />
2323
</ItemGroup>
2424
<ItemGroup>
2525
<ProjectReference Include="..\..\src\Winton.Extensions.Configuration.Consul\Winton.Extensions.Configuration.Consul.csproj" />

test/Winton.Extensions.Configuration.Consul.Test/ConsulConfigurationClientTests.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ private async Task ShouldGetConfigAtSpecifiedKey()
6262
await _consulConfigurationClient.GetConfig();
6363

6464
Action verifying = () => _kvMock.Verify(kv => kv.Get("Test", null, _cancellationToken), Times.Once);
65-
verifying.ShouldNotThrow();
65+
verifying.Should().NotThrow();
6666
}
6767

6868
[Theory]
@@ -95,7 +95,7 @@ private void ShouldThrowExceptionWhenBadResponseRecieved()
9595

9696
Func<Task> gettingConfig = _consulConfigurationClient.Awaiting(ccc => ccc.GetConfig());
9797

98-
gettingConfig.ShouldThrow<Exception>()
98+
gettingConfig.Should().Throw<Exception>()
9999
.WithMessage("Error loading configuration from consul. Status code: BadRequest.");
100100
}
101101

@@ -108,7 +108,7 @@ private void ShouldThrowExceptionWhenExceptionalResponseRecieved()
108108

109109
Func<Task> gettingConfig = _consulConfigurationClient.Awaiting(ccc => ccc.GetConfig());
110110

111-
gettingConfig.ShouldThrow<WebException>().WithMessage("Failed to connect to Consul client");
111+
gettingConfig.Should().Throw<WebException>().WithMessage("Failed to connect to Consul client");
112112
}
113113
}
114114

@@ -164,7 +164,7 @@ private void ShouldUseLongPollingToPollForChanges()
164164
{
165165
Func<Task<bool>> watching = () => SimulateConfigChange(1);
166166

167-
watching.ShouldNotThrow();
167+
watching.Should().NotThrow();
168168
}
169169

170170
[Fact]

test/Winton.Extensions.Configuration.Consul.Test/ConsulConfigurationProviderTests.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public void ShouldThrowIfParserIsNull()
3737
() =>
3838
new ConsulConfigurationProvider(_consulConfigSourceMock.Object, _consulConfigClientMock.Object);
3939

40-
constructing.ShouldThrow<ArgumentNullException>()
40+
constructing.Should().Throw<ArgumentNullException>()
4141
.And.Message.Should().Contain(nameof(_consulConfigSourceMock.Object.Parser));
4242
}
4343
}
@@ -103,7 +103,7 @@ private void ShouldNotParseIfConfigBytesIsNull()
103103
_consulConfigProvider.Load();
104104

105105
Action verifying = () => _configParserMock.Verify(cp => cp.Parse(It.IsAny<MemoryStream>()), Times.Never);
106-
verifying.ShouldNotThrow();
106+
verifying.Should().NotThrow();
107107
}
108108

109109
[Fact]
@@ -116,7 +116,7 @@ private void ShouldNotThrowExceptionIfOnLoadExceptionIsSetToIgnore()
116116
.Returns(exceptionContext => { exceptionContext.Ignore = true; });
117117

118118
Action loading = () => _consulConfigProvider.Load();
119-
loading.ShouldNotThrow();
119+
loading.Should().NotThrow();
120120
}
121121

122122
[Theory]
@@ -191,7 +191,7 @@ private void ShouldThrowExceptionIfOnLoadExceptionDoesNotSetIgnoreWhenExceptionD
191191
.Returns(exceptionContext => { exceptionContext.Ignore = false; });
192192

193193
Action loading = _consulConfigProvider.Invoking(ccp => ccp.Load());
194-
loading.ShouldThrow<Exception>().WithMessage("Error");
194+
loading.Should().Throw<Exception>().WithMessage("Error");
195195
}
196196

197197
[Fact]
@@ -207,7 +207,7 @@ private void ShouldThrowIfConfigDoesNotExistAndIsNotOptonalWhenLoad()
207207
.Returns(context => context.Ignore = false);
208208

209209
Action loading = _consulConfigProvider.Invoking(ccp => ccp.Load());
210-
loading.ShouldThrow<Exception>()
210+
loading.Should().Throw<Exception>()
211211
.WithMessage("The configuration for key Test was not found and is not optional.");
212212
}
213213
}
@@ -268,7 +268,7 @@ private void ShouldNotThrowIfDoesNotExist(bool optional)
268268
.ReturnsAsync(new QueryResult<KVPair> { StatusCode = HttpStatusCode.NotFound });
269269

270270
Action reloading = _firstChangeToken.Invoking(ct => ct.OnReload());
271-
reloading.ShouldNotThrow();
271+
reloading.Should().NotThrow();
272272
}
273273

274274
[Fact]
@@ -282,7 +282,7 @@ private void ShouldReloadConfigIfReloadOnChangeAndDataInConsulHasChanged()
282282
_firstChangeToken.OnReload();
283283

284284
Action verifying = () => _consulConfigClientMock.Verify(ccc => ccc.GetConfig(), Times.Once);
285-
verifying.ShouldNotThrow();
285+
verifying.Should().NotThrow();
286286
}
287287

288288
[Fact]
@@ -293,7 +293,7 @@ private void ShouldWatchForChangesIfSourceReloadOnChangesIsTrue()
293293
_consulConfigClientMock.Verify(
294294
ccs => ccs.Watch(_consulConfigSourceMock.Object.OnWatchException),
295295
Times.Once);
296-
verifying.ShouldNotThrow();
296+
verifying.Should().NotThrow();
297297
}
298298
}
299299
}

test/Winton.Extensions.Configuration.Consul.Test/ConsulConfigurationSourceTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ private void ShouldThrowIfKeyIsInvalid(string key)
6060
// ReSharper disable once ObjectCreationAsStatement
6161
Action constructing = () => new ConsulConfigurationSource(key, default(CancellationToken));
6262

63-
constructing.ShouldThrow<ArgumentNullException>().And.Message.Should().Contain("key");
63+
constructing.Should().Throw<ArgumentNullException>().And.Message.Should().Contain("key");
6464
}
6565
}
6666
}

test/Winton.Extensions.Configuration.Consul.Test/Parsers/Json/JsonFlattenerTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ private void ShouldThrowIfDuplicateKeyWhenFlattened(string key1, string key2)
3434

3535
Action flattening = () => jObject.Flatten();
3636

37-
flattening.ShouldThrow<FormatException>();
37+
flattening.Should().Throw<FormatException>();
3838
}
3939
}
4040
}

test/Winton.Extensions.Configuration.Consul.Test/Winton.Extensions.Configuration.Consul.Test.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818
</ItemGroup>
1919

2020
<ItemGroup>
21-
<PackageReference Include="FluentAssertions" Version="4.19.4" />
22-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.5.0" />
23-
<PackageReference Include="Moq" Version="4.8.1" />
21+
<PackageReference Include="FluentAssertions" Version="5.1.2" />
22+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.6.1" />
23+
<PackageReference Include="Moq" Version="4.8.2" />
2424
<PackageReference Include="StyleCop.Analyzers" Version="1.0.2" PrivateAssets="All" />
2525
<PackageReference Include="xunit" Version="2.3.1" />
2626
<PackageReference Include="xunit.runner.visualstudio" Version="2.3.1" />

0 commit comments

Comments
 (0)