-
Notifications
You must be signed in to change notification settings - Fork 1
thebigword Migration Guide
There are some breaking changes in this version of the test framework:
- The
thebigword.TestFrameworknamespace has been renamed toTestFramework.NUnit.Ninject.Moq. - The
thebigword.TestFramework.NSubstitutenamespace has been renamed toTestFramework.NUnit.Ninject.NSubstitute. - The
Testsbase class has been renamed toTestsFor<>. - The
SetMock<>()andSetSubstituteFor<>()methods have changed to the more fluentSet.Mock<>()andSet.SubstituteFor<>(). - To keep the public version of the framework lean, the
IsEquivalentTo()andToQueryable<>()extension methods have been removed from the Moq version. Please consider the much better Deep Equal package instead. - The
Returns()(async) extension method has been removed from the NSubstitute version.
Please follow the steps below to migrate from either thebigword.TestFramework or thebigword.TestFramework.NSubstitute.
If you have any issues migrating, please raise an issue on the issues page.
-
Update
thebigword.TestFramework,Ninject,Ninject.MockingKernel,Ninject.MockingKernel.MoqandMoqpackages in your test project to the latest versions. -
Remove
thebigword.TestFrameworkpackage. Don't uninstall it's dependencies - we still need them. -
Install the
TestFramework.NUnit.Ninject.Moqpackage from the public NuGet gallery. -
Change all namespace references from
thebigword.TestFrameworktoTestFramework.NUnit.Ninject.Moq. -
Change all references to the
Tests<>base class toTestsFor<>. -
Change all references to
SetMock<>()toSet.Mock<>(). -
Build and run your tests.
-
Update
thebigword.TestFramework.NSubstitute,Ninject,Ninject.MockingKernel,Ninject.MockingKernel.NSubstituteandNSubstitutepackages in your test project to the latest versions. -
Remove
thebigword.TestFramework.NSubstitutepackage. Don't uninstall it's dependencies - we still need them. -
Install the
TestFramework.NUnit.Ninject.NSubstitutepackage from the public NuGet gallery. -
Change all namespace references from
thebigword.TestFramework.NSubstitutetoTestFramework.NUnit.Ninject.NSubstitute. -
Change all references to the
Tests<>base class toTestsFor<>. -
Change all references to
SetSubstituteFor<>()toSet.SubstituteFor<>(). -
Build and run your tests.