public void TestByAttribute() { const string hexBuffer = "A2636167650C646E616D6563666F6F"; Tree2 tree = Helper.Read <Tree2>(hexBuffer); Assert.NotNull(tree); Assert.Equal(12, tree.GetAge()); Assert.Equal("foo", tree.GetName()); }