public void GetInvoiceObjct_MoreExpressive_Test() { // Arrange var expected = new List <InvoiceItem> { new InvoiceItem(1, "IPad", 20.00d), new InvoiceItem(2, "Stand for IPad", 15.00d), new InvoiceItem(3, "LapTop Asus", 505.00d) }.ToList(); // Act Invoice invoice = new InvoiceBuilder().WithInvoiceLines(); var resultTypeTest = invoice.GetInvoiceItems(); var resultValues = resultTypeTest.InvoiceList.ToList(); // Assert Assert.IsInstanceOf <InvoiceLines>(resultTypeTest); Assert.That(expected, DeepObj.DeepEqualTo(resultValues)); //AssertHelper.HasEqualFieldValues(expected, resultValues); //Assert.IsInstanceOf<List<InvoiceItem>>(lines); //Assert.That(expected, Is.EqualTo(lines)); //Assert.That("Hello", Is.TypeOf(typeof(string))); //Assert.That("Hello", Is.Not.TypeOf(typeof(int))); //Assert.That(invoice.lines, Is.EqualTo(expected)); //Assert.That(new[] { 1.05, 2.05, 3.05 }, Is.EquivalentTo(new[] { 3.0, 2.0, 1.0 })); }