Kyle KingsburyA Sitecore web development blog

Tag - sitecore-fakedb

Unit-testing devices and layouts with Sitecore.FakeDb

InSitecore//3 Min read

After writing a few extension methods that checked whether a Sitecore Item had a layout for the default device or any device, I wondered if I could use the Sitecore.FakeDb library to unit-test these extension methods and provide some much needed code coverage for a project i'm working on. As...