Exemplo n.º 1
0
        public void DeserializingCollectionOfObjectsWithClassNamesAsBlockNames()
        {
            var result = new OclSerializer().Deserialize <IEnumerable <FakeType> >(
                new OclDocument(
                    new[]
            {
                new OclBlock("fake_type", Array.Empty <string>(), new[] { new OclAttribute("foo", 1) }),
                new OclBlock("fake_type", Array.Empty <string>(), new[] { new OclAttribute("foo", 2) })
            }));

            result.Count().Should().Be(2);
        }