Skip to content

Commit

Permalink
switch to using new test helper method EnumerablesAreEqual
Browse files Browse the repository at this point in the history
  • Loading branch information
lazcool committed Aug 28, 2018
1 parent e242923 commit 1e4cf98
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using System;
using System.Collections.Generic;
using KellermanSoftware.CompareNetObjects;
using NUnit.Framework;
using SFA.DAS.Apprenticeships.Api.Types;
using SFA.DAS.Commitments.Infrastructure.Services;
Expand Down Expand Up @@ -75,12 +74,7 @@ public void ThenFundingPeriodsAreMappedCorrectly()
var result = _mapper.MapFrom(new List<FrameworkSummary> { TestHelper.Clone(_framework) });

//Assert
var comparer = new CompareLogic(new ComparisonConfig
{
IgnoreObjectTypes = true
});

Assert.IsTrue(comparer.Compare(result.Frameworks[0].FundingPeriods, _framework.FundingPeriods).AreEqual);
Assert.IsTrue(TestHelper.EnumerablesAreEqual<object>(_framework.FundingPeriods, result.Frameworks[0].FundingPeriods));
}

[Test]
Expand Down

0 comments on commit 1e4cf98

Please sign in to comment.