public void GetConfigurationMembers_ReturnsMembers() { EngineConfigurationTypeBuilder <SimpleFieldClass> configuration = new EngineConfigurationTypeBuilder <SimpleFieldClass>(); configuration.Setup(x => x.SomeField); ((IEngineConfigurationTypeBuilder)configuration).SetupField("SomeOtherField"); var members = ((IEngineConfigurationTypeProvider)configuration).GetConfigurationMembers(); Assert.AreEqual(2, members.Count()); }
public void Generic_Setup_WithField_ReturnsMemberConfiguration() { EngineConfigurationTypeBuilder <SimpleFieldClass> configuration = new EngineConfigurationTypeBuilder <SimpleFieldClass>(); IEngineConfigurationTypeMemberBuilder <SimpleFieldClass, String> memberConfiguration = configuration.Setup(x => x.SomeField); Assert.NotNull(memberConfiguration); }