public void CreationFromConfigurationWithAssemblerAttributeSucceds() { MockConfigurationObjectBase configurationObject = new MockConfigurationObjectWithAssemblerAttribute(); MockAssembledObject createdObject = factory.Create(context, configurationObject, configurationSource, reflectionCache); Assert.IsNotNull(createdObject); }
public void SecondCreationFromConfigurationWithAssemblerAttributeSuccedsUsingCachedAssembler() { MockConfigurationObjectBase configurationObject = new MockConfigurationObjectWithAssemblerAttribute(); MockAssembledObject createdObject1 = factory.Create(context, configurationObject, configurationSource, reflectionCache); MockAssembledObject createdObject2 = factory.Create(context, configurationObject, configurationSource, reflectionCache); Assert.IsNotNull(createdObject1); Assert.IsNotNull(createdObject2); Assert.AreEqual(1, MockAssembler.ConstructorCalls); }