public void AUT_StringGenerator_Constructor_Instantiation_With_Parameter_Test() { // Arrange var specimenFactory = this.CreateType <Func <object> >(); StringGenerator instance = null; Exception creationException = null; // Act Action createAction = () => instance = new StringGenerator(specimenFactory); creationException = ActionAnalyzer.GetActionException(createAction); // Assert instance.ShouldNotBeNull(); _stringGeneratorInstance.ShouldNotBeNull(); _stringGeneratorInstanceFixture.ShouldNotBeNull(); Should.NotThrow(createAction); }