コード例 #1
0
        public void DoesNotAddArrayTypes()
        {
            var meta = TestMetaData.CreateClassWithArrayField();
            var db   = Configure(DatabaseMetaInfo.Create(meta, TestUtils.NewName()));

            Assert.NotNull(db);
        }
コード例 #2
0
        public void NoContextForArrayTypes()
        {
            var metaInfo   = TestMetaData.CreateClassWithArrayField();
            var infos      = NewTestInstance(metaInfo);
            var properties = AllPropertiesExceptMetaData(infos);

            Assert.AreEqual(1, properties.Count());
        }
コード例 #3
0
        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" });
        }