public void Mocks_Dependencies_Correctly()
        {
            var fixture = new ValidFixture();

            var mockOne = fixture.GetMock <DependencyOne>();
            var mockTwo = fixture.GetMock <DependencyTwo>();

            Assert.AreEqual(mockOne.Object, ValidType.dependencyOne);
            Assert.AreEqual(mockTwo.Object, ValidType.dependencyTwo);
        }
        public void Runs_Global_Fixture_Config()
        {
            var expectedObject = new Object();

            DefaultMocks.AddSetup(f =>
            {
                f.Mock <DependencyOne>()
                .Setup(x => x.GetObject(It.IsAny <Object>()))
                .Returns(expectedObject);

                f.Mock <Object>();
            });

            var fixture = new ValidFixture();

            Assert.AreEqual(expectedObject, fixture.GetMock <DependencyOne>().Object.GetObject(new Object()));
        }
        public void Throws_Exception_If_Type_Has_Not_Asked_For_Dependency()
        {
            var fixture = new ValidFixture();

            Assert.ThrowsException <InvalidOperationException>(() => fixture.AskForWrongMock());
        }