public void You_can_set_up_all_properties_with_one_line() { mocker.SetupAllProperties <IService5>(); var mock = mocker.Get <IService5>(); mock.Name = "aname"; mock.Name.ShouldEqual("aname"); }
public void You_can_set_up_all_properties_with_one_line() { var mocker = new AutoMocker(); mocker.SetupAllProperties <IService5>(); var mock = mocker.Get <IService5>(); mock.Name = "aname"; Assert.AreEqual("aname", mock.Name); }