public void DeserializeArray() { var t = BlockParser.Deserialize <List <T1> >(@"<T1> <Name>a1</Name> </T1> <T1> <Name>a2</Name> </T1>"); t.Should().HaveCount(2); t[0].Name.Should().Be("a1"); t[1].Name.Should().Be("a2"); }
public void DeserializePoco() { BlockParser.Deserialize <T1>(@"<T1> <Name>a1</Name> </T1>").Name.Should().Be("a1"); }