예제 #1
0
            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");
            }
예제 #2
0
        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);
        }