public void TestRepository2() { // arrange IProductRepository productRepository = new ProductRepository2(); // act IEnumerable<Product> products = productRepository.GetByFileName(AppDomain.CurrentDomain.BaseDirectory + @"\..\..\sample.xml"); // assert Assert.That(products, Has.Some.Matches<Product>(p => p.Name == "IPod Nano")); }