Skip to content

Commit

Permalink
Add unit tests for AutoNSubstituteWithMembersCustomization
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasmidstrup committed Nov 17, 2023
1 parent 5875093 commit e0e5aa0
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
// Copyright (c) Maersk. All rights reserved.
// Licensed under the Apache License. See LICENSE in the project root for license information.

namespace Maersk.Test.AutoFixtureExtensions.Tests;

using FluentAssertions;
using Maersk.Test.AutoFixtureExtensions;
using Xunit;

[Trait(nameof(Category), Category.Unit)]
public sealed class AutoNSubstituteWithMembersCustomizationTest
{
[Trait(nameof(Category), Category.Unit)]
public sealed class Constructor
{
[Fact]
public void Given_no_input_When_creating_an_instance_Then_it_sets_ConfigureMembers_true()
{
var result = new AutoNSubstituteWithMembersCustomization();

result.ConfigureMembers.Should().BeTrue();
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
<PackageReference Include="AutoFixture.Idioms" Version="4.18.0" />
<PackageReference Include="AutoFixture.Xunit2" Version="4.18.0" />
<PackageReference Include="FluentAssertions" Version="6.12.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.7.2" />
<PackageReference Include="xunit" Version="2.5.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.0">
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
<PackageReference Include="xunit" Version="2.6.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.3">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
Expand Down

0 comments on commit e0e5aa0

Please sign in to comment.