public void ToXml_PlanIdEndsWith() { SubscriptionSearchRequest request = new SubscriptionSearchRequest().PlanId.EndsWith("30"); var xml = "<search><plan-id><ends-with>30</ends-with></plan-id></search>"; Assert.AreEqual(xml, request.ToXml()); }