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