public void DoesNotAddArrayTypes() { var meta = TestMetaData.CreateClassWithArrayField(); var db = Configure(DatabaseMetaInfo.Create(meta, TestUtils.NewName())); Assert.NotNull(db); }
public void NoContextForArrayTypes() { var metaInfo = TestMetaData.CreateClassWithArrayField(); var infos = NewTestInstance(metaInfo); var properties = AllPropertiesExceptMetaData(infos); Assert.AreEqual(1, properties.Count()); }
public void CanInstantiateClassWithArrayFields() { var metaInfo = TestMetaData.CreateClassWithArrayField(); var type = ExtractSingleFieldType(metaInfo); Assert.IsTrue(type.Name.StartsWith(SingleFieldMeta(metaInfo).Name)); dynamic instance = CreateInstance(type); AssertFieldCanBeSet(instance, new [] { "1", "2" }); }