Created
February 26, 2017 17:09
-
-
Save angelovstanton/3d910c7f38470b048d9d7282c44a6657 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public partial class ShippingAddressPage | |
{ | |
public void AssertPurchaseOrders(List<PurchaseOrder> purchaseOrders) | |
{ | |
string GetFormattedPurchaseOrder(PurchaseOrder purchaseOrder) => | |
$"Your product: {purchaseOrder.ProductName} costs {purchaseOrder.Price}"; | |
for (int i = 0; i < purchaseOrders.Count; i++) | |
{ | |
Assert.AreEqual(GetFormattedPurchaseOrder(purchaseOrders[i]), PurchaseOrderRows[i].Text); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment