public void ExpandablesTest() { // Arrange var stripeClient = new StripeClient(null, null) { Expandables = new List <string> { Expandables.Invoice, Expandables.Customer, Expandables.Charge } }; // Act var keys = stripeClient.GetAllKeyValuePairs <object>(null); // Assert keys.Should() .Contain(x => x.Key == "expand[]" && x.Value == "invoice") .And.Contain(x => x.Key == "expand[]" && x.Value == "customer") .And.Contain(x => x.Key == "expand[]" && x.Value == "charge"); }
public void ExpandablesTest() { // Arrange var stripeClient = new StripeClient(null,null); stripeClient.Expandables = new List<string> {Expandables.Invoice, Expandables.Customer, Expandables.Charge}; // Act var keys = stripeClient.GetAllKeyValuePairs<object>(null); // Assert keys.Should() .Contain(x => x.Key == "expand[]" && x.Value == "invoice") .And.Contain(x => x.Key == "expand[]" && x.Value == "customer") .And.Contain(x => x.Key == "expand[]" && x.Value == "charge"); }