protected override void TestIgnoringInvalidEntries()
        {
            var inputWithInvalidEntry = @"[{""first_name"":""Pat"",""last_name"":""Silverthorne"",""country"":""France"",""age"":60},
                                             {""invalid"":""Glen"",""last_name"":""Oliff"",""country"":""Bangladesh"",""age"":34},
                                             {""first_name"":""Edvard"",""last_name"":""Ausher"",""country"":""Liberia"",""age"":92}]";

            var result = ObjectUnderTest.DeserializeArray(inputWithInvalidEntry);

            Assert.AreEqual(2, result.Count());
        }
        protected override void TestIgnoringInvalidEntries()
        {
            var inputWithInvalidEntry = @"first_name,last_name,country,age
Ryon,,Belarus,71
Elie,Mardall,Kazakhstan,invalid
Dorothy,Lanigan,American Samoa,70";

            var result = ObjectUnderTest.DeserializeArray(inputWithInvalidEntry);

            Assert.AreEqual(1, result.Count());
            Assert.AreEqual("Dorothy", result.First().FirstName);
            Assert.AreEqual("Lanigan", result.First().LastName);
            Assert.AreEqual("American Samoa", result.First().Country);
            Assert.AreEqual(70, result.First().Age);
        }
        protected override void TestIgnoringInvalidEntries()
        {
            var xml = @"<?xml version='1.0' encoding='UTF-8'?>
<dataset>
<record><first_name></first_name><last_name>Borsnall</last_name><country>Portugal</country><age>55</age></record>
<record><first_name>Teador</first_name><last_name>Holcroft</last_name><country>Ukraine</country><age>invalid</age></record>
<record><first_name>Tiffy</first_name><last_name>Reggio</last_name><country>China</country><age>65</age></record></dataset>";

            var people = ObjectUnderTest.DeserializeArray(xml);

            Assert.AreEqual(1, people.Count());
            Assert.AreEqual("Tiffy", people.First().FirstName);
            Assert.AreEqual("Reggio", people.First().LastName);
            Assert.AreEqual("China", people.First().Country);
            Assert.AreEqual(65, people.First().Age);
        }