Skip to content

Commit

Permalink
replace RhinoMocks with Moq using RhinoMocksToMoq migration package.
Browse files Browse the repository at this point in the history
  • Loading branch information
hahn-kev committed Jul 30, 2024
1 parent 2cbb409 commit c03afbd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using Moq;
using NUnit.Framework;
using Rhino.Mocks;
using SIL.LCModel.Core.KernelInterfaces;
using SIL.LCModel.Core.Scripture;
using SIL.LCModel.Core.Text;
using SIL.LCModel.DomainImpl;
using SIL.LCModel.Utils;
using MockRepository = Rhino.Mocks.MockRepository;

namespace SIL.LCModel.DomainServices
{
Expand Down Expand Up @@ -320,7 +322,7 @@ public override void TestSetup()
GetBtDelegate getBtDelegate = () =>
m_para.TranslationsOC.FirstOrDefault(trans => trans.TypeRA != null &&
trans.TypeRA.Guid == CmPossibilityTags.kguidTranBackTranslation);
m_para.Stub(p => p.GetBT()).Do(getBtDelegate);
Mock.Get(m_para).Setup(p => p.GetBT()).Returns(getBtDelegate);
}
#endregion

Expand Down
2 changes: 1 addition & 1 deletion tests/SIL.LCModel.Tests/SIL.LCModel.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ This package provides unit tests for SIL.LCModel.</Description>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All" />
<PackageReference Include="NUnit" Version="3.13.3" />
<PackageReference Include="NUnit3TestAdapter" Version="4.3.2" />
<PackageReference Include="RhinoMocks" Version="3.6.1" />
<PackageReference Include="RhinoMocksToMoq" Version="0.2.0"/>
<PackageReference Include="SIL.ReleaseTasks" Version="2.5.0" PrivateAssets="All" />
</ItemGroup>

Expand Down

0 comments on commit c03afbd

Please sign in to comment.