I've set everything up, but when I run my unit test I get the following error:
Result StackTrace:
at Umbraco.Tests.TestHelpers.BaseDatabaseFactoryTest.Initialize()
at Umbraco.Tests.TestHelpers.BaseWebTest.Initialize() in C:\...\Umbraco.Tests\TestHelpers\BaseWebTest.cs:line 31
Result Message: SetUp : System.MissingMethodException : Method not found: 'Void Umbraco.Core.Persistence.DefaultDatabaseFactory.ResetForTests()'.
Struggling to get to the bottom of the issue. Does anyone have any ideas?
Unit Test issue
Hi folks,
I'm trying to set up Unit Tests in umbraco, following a guide here: http://bomboca.co.uk/umbraco-cms/unit-testing-umbraco/stub-umbraco-dependencies/
I've set everything up, but when I run my unit test I get the following error:
Struggling to get to the bottom of the issue. Does anyone have any ideas?
Had to revert UmbracoCms.Core to version 7.5.11, using Our.Umbraco.Community.Tests v7.5.14
Hi Fraser,
the article is a bit old.
Maybe have a look at this one which is quite new: http://blog.aabech.no/archive/the-basics-of-unit-testing-umbraco-just-got-simpler/
Regards David
is working on a reply...