|
by Patrik Hägne via Legend and truth on 12/19/2009 12:40:00 PM
I’ve just updated the way to configure any call to faked objects in FakeItEasy, the syntax is new and also you can now configure return values. Let’s say you have an interface providing localized text resources like this:public interface ILocalizedResources
{
string SomeText { get; }
string SomeOtherText { get; }
}
When you fake this interface any of the properties would return null when not configured but you might have several tests that are dependant on that the values are non null s
... [ read more ]
|