Beispiel #1
0
        public void ReferencableMasterInfoのコレクションの更新が反映される()
        {
            PropertyFactory factory = new PropertyFactory();
            var             root    = factory.GetStructure(Assembly.GetExecutingAssembly(),
                                                           typeof(Hoge),
                                                           new PropertyWriter.Models.Project[0]);

            int countB = factory.AsDynamic().loader.Masters["Fugas"].Collection.Count;

            countB.Is(0);

            var fugas = root.Structure.Properties.First(x => x.PropertyInfo.Name == "Fugas")
                        .IsInstanceOf <ComplicateCollectionProperty>();

            fugas.AddNewElement();

            int countA = factory.AsDynamic().loader.Masters["Fugas"].Collection.Count;

            countA.Is(1);
        }