private static void ReportResult(SpatialFunction overlayOp, Location[] location, bool expectedInterior)
 {
     System.Diagnostics.Debug.WriteLine(overlayOp + ":"
                                        + " A:" + LocationUtility.ToLocationSymbol(location[0])
                                        + " B:" + LocationUtility.ToLocationSymbol(location[1])
                                        + " expected:" + (expectedInterior ? 'i' : 'e')
                                        + " actual:" + LocationUtility.ToLocationSymbol(location[2])
                                        );
 }
        private static void ReportResult(SpatialFunction overlayOp, Location[] location, bool expectedInterior)
        {
// ReSharper disable RedundantStringFormatCall
            // String.Format needed to build 2.0 release!
            Debug.WriteLine(string.Format("{0}:" + " A:{1} B:{2} expected:{3} actual:{4}",
                                          overlayOp,
                                          LocationUtility.ToLocationSymbol(location[0]),
                                          LocationUtility.ToLocationSymbol(location[1]), expectedInterior ? 'i' : 'e',
                                          LocationUtility.ToLocationSymbol(location[2])));
// ReSharper restore RedundantStringFormatCall
        }
        /// <summary>
        ///
        /// </summary>
        /// <returns></returns>
        public override string ToString()
        {
            StringBuilder sb = new StringBuilder();

            if (_location.Length > 1)
            {
                sb.Append(LocationUtility.ToLocationSymbol(_location[(int)Positions.Left]));
            }
            sb.Append(LocationUtility.ToLocationSymbol(_location[(int)Positions.On]));
            if (_location.Length > 1)
            {
                sb.Append(LocationUtility.ToLocationSymbol(_location[(int)Positions.Right]));
            }
            return(sb.ToString());
        }