From 2726cad2345567e4012f51895c84426d0d07e340 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ra=C3=BAl=20LB?= Date: Thu, 23 May 2024 08:09:32 +0200 Subject: [PATCH] MINOR FIX: Add fluent assertion package --- STX.SPAL.Core.Tests.Unit/STX.SPAL.Core.Tests.Unit.csproj | 1 + ...emblyServiceTests.Logic.GetApplicationPathsAssemblies.cs | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/STX.SPAL.Core.Tests.Unit/STX.SPAL.Core.Tests.Unit.csproj b/STX.SPAL.Core.Tests.Unit/STX.SPAL.Core.Tests.Unit.csproj index 28a1244..9823055 100644 --- a/STX.SPAL.Core.Tests.Unit/STX.SPAL.Core.Tests.Unit.csproj +++ b/STX.SPAL.Core.Tests.Unit/STX.SPAL.Core.Tests.Unit.csproj @@ -10,6 +10,7 @@ + diff --git a/STX.SPAL.Core.Tests.Unit/Services/Foundations/Assemblies/AssemblyServiceTests.Logic.GetApplicationPathsAssemblies.cs b/STX.SPAL.Core.Tests.Unit/Services/Foundations/Assemblies/AssemblyServiceTests.Logic.GetApplicationPathsAssemblies.cs index b312953..edb2920 100644 --- a/STX.SPAL.Core.Tests.Unit/Services/Foundations/Assemblies/AssemblyServiceTests.Logic.GetApplicationPathsAssemblies.cs +++ b/STX.SPAL.Core.Tests.Unit/Services/Foundations/Assemblies/AssemblyServiceTests.Logic.GetApplicationPathsAssemblies.cs @@ -3,6 +3,7 @@ // ---------------------------------------------------------------------------------- using System.Threading.Tasks; +using FluentAssertions; using Moq; namespace STX.SPAL.Core.Tests.Unit.Services.Foundations.Assemblies @@ -28,10 +29,13 @@ private async Task ShouldGetApplicationPathAssemblies() .Returns(returnedApplicationPathsAssemblies); // when - string[] actuaApplicationPathsAssemblies = + string[] actualApplicationPathsAssemblies = this.assemblyService.GetApplicationPathsAssemblies(); //then + actualApplicationPathsAssemblies.Should() + .BeEquivalentTo(expectedApplicationPathsAssemblies); + this.assemblyBroker.Verify( broker => broker.GetApplicationPathsAssemblies(),