/// <summary>Test counter recovery</summary> /// <exception cref="Sharpen.ParseException"/> private void TestCounter(Counters counter) { string compactEscapedString = counter.MakeEscapedCompactString(); Counters recoveredCounter = Counters.FromEscapedCompactString(compactEscapedString ); // Check for recovery from string NUnit.Framework.Assert.AreEqual("Recovered counter does not match on content", counter , recoveredCounter); }