public void GivenClassWithBDDTestFixtureAttributeWhenCanBuildFromIsCalled() { _mockReflectionProvider = new Mock<IReflectionProvider>(); _mockReflectionProvider.Setup( rp => rp.HasAttribute(It.IsAny<ICustomAttributeProvider>(), It.IsAny<Type>(), It.IsAny<bool>())). Returns(true); var bddSuiteBuilder = new BDDSuiteBuilder(_mockReflectionProvider.Object, new Mock<ITypeManager>().Object); _returnedValue = bddSuiteBuilder.CanBuildFrom(typeof (BDDTestFixtureTestClass)); }
public void GivenClassWithBDDTestFixtureAttributeWhenBuildFromIsCalled() { var bddSuiteBuilder = new BDDSuiteBuilder(new Mock<IReflectionProvider>().Object, new Mock<ITypeManager>().Object); _returnedTestFixture = bddSuiteBuilder.BuildFrom(typeof(BDDTestFixtureTestClass)); }