Esempio n. 1
0
        public void Create_returns_the_class_resolved_from_automoqer()
        {
            WithAutoMoqer.mocker = new AutoMoqer();

            Assert.Same(WithAutoMoqer.Create <Test>().Dependency, WithAutoMoqer.GetMock <IDependency>().Object);
        }
Esempio n. 2
0
        public void GetMock_returns_the_mock()
        {
            WithAutoMoqer.mocker = new AutoMoqer();

            Assert.Same(WithAutoMoqer.GetMock <IDependency>(), WithAutoMoqer.mocker.GetMock <IDependency>());
        }