Ale, music and enjoying life.
Posted on August 16, 2017 by admin
var mockedInterface = new Mock<IInterface>();
mockedInterface.As().Setup(i => i.MethodOnTheInterface());
Easy as that!
Been working with Moq a fair bit recently. Some other Moq tips and tricks here.
Category: Comps Tags: Moq, nunit, unit testing
Copyright © 2023 · All Rights Reserved · Wasting Time
Theme: Natural Lite by Organic Themes · RSS Feed