Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): upgrade test project packages #270

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,13 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Bogus" Version="29.0.2" />
<PackageReference Include="coverlet.collector" Version="6.0.2">
<PackageReference Include="Bogus" Version="35.6.1" />
<PackageReference Include="coverlet.collector" Version="6.0.4">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Guard.Net" Version="3.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration" Version="9.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.EnvironmentVariables" Version="9.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="9.0.0" />
<PackageReference Include="Microsoft.Extensions.Logging" Version="9.0.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.8.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.EnvironmentVariables" Version="9.0.1" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
<PackageReference Include="xunit" Version="2.9.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.3.1" />
</ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
using System.IO;
using System.Linq;
using Bogus;
using GuardNet;

namespace Arcus.Testing.Tests.Integration.Core.Fixture
{
Expand All @@ -16,10 +15,6 @@ internal class TemporaryDirectory : IDisposable

private TemporaryDirectory(DirectoryInfo dir, string[] subDirNames)
{
Guard.NotNull(dir, nameof(dir));
Guard.NotNull(subDirNames, nameof(subDirNames));
Guard.NotAny(subDirNames, nameof(subDirNames));

_dir = dir;
SubDirNames = subDirNames;
}
Expand All @@ -39,7 +34,7 @@ private TemporaryDirectory(DirectoryInfo dir, string[] subDirNames)
/// </summary>
public static TemporaryDirectory GenerateAt(DirectoryInfo root)
{
Guard.NotNull(root, nameof(root));
ArgumentNullException.ThrowIfNull(root);

string[] subDirNames = Bogus.Lorem.Words();
string path = System.IO.Path.Combine(subDirNames.Prepend(root.FullName).ToArray());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
using System.IO;
using System.Text;
using Bogus;
using GuardNet;

namespace Arcus.Testing.Tests.Integration.Core.Fixture
{
Expand All @@ -16,9 +15,6 @@ internal class TemporaryFile : IDisposable

private TemporaryFile(FileInfo file, byte[] fileContents)
{
Guard.NotNull(file, nameof(file));
Guard.NotNull(fileContents, nameof(fileContents));

_file = file;
Contents = fileContents;
}
Expand All @@ -32,7 +28,7 @@ private TemporaryFile(FileInfo file, byte[] fileContents)
/// Gets the raw contents of the temporary file.
/// </summary>
public byte[] Contents { get; }

/// <summary>
/// Gets the raw contents as text of the temporary file.
/// </summary>
Expand All @@ -43,7 +39,7 @@ private TemporaryFile(FileInfo file, byte[] fileContents)
/// </summary>
public static TemporaryFile GenerateAt(DirectoryInfo directory)
{
Guard.NotNull(directory, nameof(directory));
ArgumentNullException.ThrowIfNull(directory);

string fileName = Bogus.System.FileName();
byte[] fileContents = Bogus.Random.Bytes(Bogus.Random.Int(10, 20));
Expand All @@ -56,9 +52,9 @@ public static TemporaryFile GenerateAt(DirectoryInfo directory)
/// </summary>
public static TemporaryFile CreateAt(DirectoryInfo directory, string fileName, byte[] fileContents)
{
Guard.NotNull(directory, nameof(directory));
Guard.NotNullOrWhitespace(fileName, nameof(fileContents));
Guard.NotNull(fileContents, nameof(fileContents));
ArgumentNullException.ThrowIfNull(directory);
ArgumentException.ThrowIfNullOrWhiteSpace(fileName);
ArgumentNullException.ThrowIfNull(fileName);

string filePath = Path.Combine(directory.FullName, fileName);
File.WriteAllBytes(filePath, fileContents);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using System;
using System.IO;
using GuardNet;

namespace Arcus.Testing.Tests.Integration.Core.Fixture
{
Expand All @@ -14,9 +13,6 @@ internal class TemporaryFileEdit : IDisposable

private TemporaryFileEdit(FileInfo file, string originalContents)
{
Guard.NotNull(file, nameof(file));
Guard.NotNull(originalContents, nameof(originalContents));

_file = file;
_originalContents = originalContents;
}
Expand All @@ -26,8 +22,8 @@ private TemporaryFileEdit(FileInfo file, string originalContents)
/// </summary>
public static TemporaryFileEdit At(FileInfo file, Func<string, string> editContents)
{
Guard.NotNull(file, nameof(file));
Guard.NotNull(editContents, nameof(editContents));
ArgumentNullException.ThrowIfNull(file);
ArgumentNullException.ThrowIfNull(editContents);

string originalContents = File.ReadAllText(file.FullName);
string editedContents = editContents(originalContents);
Expand Down
13 changes: 6 additions & 7 deletions src/Arcus.Testing.Tests.Unit/Arcus.Testing.Tests.Unit.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,15 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Bogus" Version="29.0.2" />
<PackageReference Include="coverlet.collector" Version="6.0.2">
<PackageReference Include="Bogus" Version="35.6.1" />
<PackageReference Include="coverlet.collector" Version="6.0.4">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="FsCheck.Xunit" Version="2.16.6" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.8.0" />
<PackageReference Include="Moq" Version="4.14.5" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
<PackageReference Include="Moq" Version="4.20.72" />
<PackageReference Include="MSTest.TestFramework" Version="3.4.3" />
<PackageReference Include="System.Text.RegularExpressions" Version="4.3.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.3.1" />
</ItemGroup>

Expand All @@ -25,8 +24,8 @@
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net8.0'">
<PackageReference Include="Microsoft.Extensions.Hosting" Version="9.0.0" />
<PackageReference Include="Microsoft.Extensions.Caching.Memory" Version="9.0.0" />
<PackageReference Include="Microsoft.Extensions.Hosting" Version="9.0.1" />
<PackageReference Include="Microsoft.Extensions.Caching.Memory" Version="9.0.1" />
</ItemGroup>

<ItemGroup>
Expand Down
Loading