Skip to content

Commit

Permalink
YIKES.
Browse files Browse the repository at this point in the history
  • Loading branch information
Vivelin committed Dec 7, 2023
1 parent 599f0c6 commit bb10d1d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Libraries.sln
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.9.34321.82
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Vivelin.Core", "src\Vivelin.Core\Vivelin.Core.csproj", "{086D3637-D9E3-4980-8C50-1ABDFA99AAF3}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Vivelin.Core", "src\Vivelin.Core\Vivelin.Core.csproj", "{086D3637-D9E3-4980-8C50-1ABDFA99AAF3}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Tests", "Tests", "{55F80F8C-2CFB-4E4B-A4C7-373376BB8BF5}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Vivelin.Core.Tests", "tests\Vivelin.Core.Tests\Vivelin.Core.Tests.csproj", "{2E7E3540-851C-4351-8644-B9F946E9F42E}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Vivelin.Core.Tests", "tests\Vivelin.Core.Tests\Vivelin.Core.Tests.csproj", "{2E7E3540-851C-4351-8644-B9F946E9F42E}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand Down
2 changes: 1 addition & 1 deletion tests/Vivelin.Core.Tests/GlobalUsings.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
global using Xunit;
global using FluentAssertions;
global using Moq;
global using NSubstitute;
5 changes: 3 additions & 2 deletions tests/Vivelin.Core.Tests/SchrödingerTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ public void SchrodingersString_ResolvesToRandomString()
{
var values = new[] { "Bulbasaur", "Charmander", "Squirtle" };
var instance = new Schrödinger<string>(values);
var mockRandom = Mock.Of<Random>(x => x.Next(2) == 0);
var random = Substitute.For<Random>();
random.Next(2).Returns(0);

instance.Resolve(mockRandom).Should().Be("Bulbasaur");
instance.Resolve(random).Should().Be("Bulbasaur");
}

[Fact]
Expand Down
2 changes: 1 addition & 1 deletion tests/Vivelin.Core.Tests/Vivelin.Core.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<ItemGroup>
<PackageReference Include="FluentAssertions" Version="6.12.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.6.0" />
<PackageReference Include="Moq" Version="4.20.69" />
<PackageReference Include="NSubstitute" Version="5.1.0" />
<PackageReference Include="xunit" Version="2.4.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.5">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
Expand Down

0 comments on commit bb10d1d

Please sign in to comment.