public void ReverseWords2Test() { var firstIn = "abc cba/123"; var res = ReadifyFactory.ReverseWords(firstIn); Assert.AreEqual("cba abc/123", res); }
/// <summary> /// Reverse word's letters ignoring any symbols, whitespace, delimiters and digits /// </summary> /// <param name="s">The list of workds</param> /// <returns>String with reversed words</returns> public string ReverseWords(string s) { try { return(ReadifyFactory.ReverseWords(s)); } catch (Exception ex) { Trace.TraceError("Error invoking ReverseWords. a: {0}, Error: {1}", s, ex); throw new FaultException("Sorry, there happened something unexpected!!!"); } }