IList<IFormatStringSegment> ParseTest(string format, params IFormatStringSegment[] expectedFormatSegments)
		{
			var parser = new CompositeFormatStringParser();
			var actualFormatSegments = parser.Parse(format).Segments;

			Console.WriteLine("Expected format segments:");
			foreach (var item in expectedFormatSegments) {
				Console.WriteLine(item.ToString());
			}
			Console.WriteLine("Actual format segments:");
			foreach (var item in actualFormatSegments) {
				Console.WriteLine(item.ToString());
				foreach (var error in item.Errors) {
					Console.WriteLine("\t{0}", error);
				}
			}

			Assert.AreEqual(expectedFormatSegments, actualFormatSegments);
			return actualFormatSegments;
		}
        IList <IFormatStringSegment> ParseTest(string format, params IFormatStringSegment[] expectedFormatSegments)
        {
            var parser = new CompositeFormatStringParser();
            var actualFormatSegments = parser.Parse(format).Segments;

            Console.WriteLine("Expected format segments:");
            foreach (var item in expectedFormatSegments)
            {
                Console.WriteLine(item.ToString());
            }
            Console.WriteLine("Actual format segments:");
            foreach (var item in actualFormatSegments)
            {
                Console.WriteLine(item.ToString());
                foreach (var error in item.Errors)
                {
                    Console.WriteLine("\t{0}", error);
                }
            }

            Assert.AreEqual(expectedFormatSegments, actualFormatSegments);
            return(actualFormatSegments);
        }