error:problemas burla de Rhino con colocador privada en trozo
You are trying to set an expectation on a property that was defined to use PropertyBehavior. Instead of writing code such as this: mockObject.Stub(x => x.SomeProperty).Return(42); You can use the property directly to achieve the same result: mockObject.SomeProperty = 42;
var x = MockRepository.GenerateStub<MyClass>();
x.Stub(s => s.Items).Return(new List<Item>());
public class MyClass
{
public virtual IEnumerable<Item> Items
{
get {return _items;}
private set {_items = value;}
}
}
¿Qué estoy haciendo mal?
Encontré la solución. Salir del proyecto para poder elegir una herramienta que funcione. E.g Moq – Daniel