public void Enum() { var data = new { MyProp = BindingFlags.Static }; var result = new OclSerializer().ToOclDocument(data); result.Should() .HaveChildrenExactly( new OclAttribute("my_prop", "Static") ); }
public void ListOfComplexTypesProperty() { var data = new { Cars = new List <Car> { new Car(), new Car() } }; var result = new OclSerializer().ToOclDocument(data); result.Should() .HaveChildrenExactly( new OclBlock("car") { new OclAttribute("doors", 2) }, new OclBlock("car") { new OclAttribute("doors", 2) } ); }