Exemplo n.º 1
0
        public void ContainsTest()
        {
            var document = new CsvDocument <Person>(new Person[]
            {
                new Person {
                    Name = "Akari", Age = 20
                },
                new Person {
                    Name = "Kyoko", Age = 21
                },
                new Person {
                    Name = "Yui", Age = 22
                },
                new Person {
                    Name = "Chinatsu", Age = 19
                }
            });

            Assert.IsTrue(document.Contains(new Person {
                Name = "Akari", Age = 20
            }));
            Assert.IsTrue(document.Contains(new Person {
                Name = "Kyoko", Age = 21
            }));
            Assert.IsTrue(document.Contains(new Person {
                Name = "Yui", Age = 22
            }));
            Assert.IsTrue(document.Contains(new Person {
                Name = "Chinatsu", Age = 19
            }));
        }