Posts Tagged ‘Sitecore.FakeDb’

Testing Code@1x.jpg

Unit Testing Custom Rules, Actions, and Conditions with FakeDb – Part 3 – Testing Rule Execution

I thought it would be a good idea to finish this series with Part 3 – Testing Rule Execution – focusing on new rule types.

Office@1x.jpg

How to Test PageMode.IsExperienceEditorEditing in Sitecore

If you are passionate about testing automation in Sitecore, sooner or later you will want to mock Context.PageMode.IsExperienceEditorEditing (or Context.PageMode.IsPageEditorEditing in pre-Sitecore 8) properties. This post will give you step-by-step instructions on how to do that using Sitecore.FakeDb.