|
3 | 3 | // Licensed under the MIT License. See LICENSE file in the project root for full license information. |
4 | 4 | // |
5 | 5 |
|
6 | | -namespace DropoutCoder.PolylineAlgorithm.Tests { |
7 | | - using System; |
8 | | - using System.Collections.Generic; |
9 | | - using System.Linq; |
| 6 | +namespace DropoutCoder.PolylineAlgorithm.Tests |
| 7 | +{ |
| 8 | + using System; |
| 9 | + using System.Collections.Generic; |
| 10 | + using System.Linq; |
10 | 11 |
|
11 | | - /// <summary> |
12 | | - /// Defines default values and objects used for testing purposes |
13 | | - /// </summary> |
14 | | - public static class Defaults { |
15 | | - /// <summary> |
16 | | - /// Defines default decoded values and objects udśed for testing purposes |
17 | | - /// </summary> |
18 | | - public static class Coordinate { |
19 | | - #region Fields |
| 12 | + /// <summary> |
| 13 | + /// Defines default values and objects used for testing purposes |
| 14 | + /// </summary> |
| 15 | + public static class Defaults |
| 16 | + { |
| 17 | + /// <summary> |
| 18 | + /// Defines default decoded values and objects udśed for testing purposes |
| 19 | + /// </summary> |
| 20 | + public static class Coordinate |
| 21 | + { |
| 22 | + #region Fields |
20 | 23 |
|
21 | | - /// <summary> |
22 | | - /// Defines empty range of coordinates. Equals to decoded <seealso cref="Polyline.Empty"/> |
23 | | - /// </summary> |
24 | | - public static readonly IEnumerable<(double Latitude, double Longitude)> Empty = Enumerable.Empty<(double Latitude, double Longitude)>(); |
| 24 | + /// <summary> |
| 25 | + /// Defines empty range of coordinates. Equals to decoded <seealso cref="Polyline.Empty"/> |
| 26 | + /// </summary> |
| 27 | + public static readonly IEnumerable<(double Latitude, double Longitude)> Empty = Enumerable.Empty<(double Latitude, double Longitude)>(); |
25 | 28 |
|
26 | | - /// <summary> |
27 | | - /// Defines range of invalid coordinates. Equals to decoded <seealso cref="Polyline.Invalid"/> |
28 | | - /// </summary> |
29 | | - public static readonly IEnumerable<(double Latitude, double Longitude)> Invalid = new[] { |
30 | | - (149.47383, 259.06250), |
31 | | - (-158.37407, 225.31250), |
32 | | - (152.99363, -220.93750), |
33 | | - (-144.49024, -274.37500) |
34 | | - }; |
| 29 | + /// <summary> |
| 30 | + /// Defines range of invalid coordinates. Equals to decoded <seealso cref="Polyline.Invalid"/> |
| 31 | + /// </summary> |
| 32 | + public static readonly IEnumerable<(double Latitude, double Longitude)> Invalid = new[] { |
| 33 | + (149.47383, 259.06250), |
| 34 | + (-158.37407, 225.31250), |
| 35 | + (152.99363, -220.93750), |
| 36 | + (-144.49024, -274.37500) |
| 37 | + }; |
35 | 38 |
|
36 | | - /// <summary> |
37 | | - /// Defines range of valid coordinates. Equals to decoded <seealso cref="Polyline.Valid"/> |
38 | | - /// </summary> |
39 | | - public static readonly IEnumerable<(double Latitude, double Longitude)> Valid = new[] { |
40 | | - (49.47383, 59.06250), |
41 | | - (-58.37407, 25.31250), |
42 | | - (52.99363, -120.93750), |
43 | | - (-44.49024, -174.37500) |
44 | | - }; |
| 39 | + /// <summary> |
| 40 | + /// Defines range of valid coordinates. Equals to decoded <seealso cref="Polyline.Valid"/> |
| 41 | + /// </summary> |
| 42 | + public static readonly IEnumerable<(double Latitude, double Longitude)> Valid = new[] { |
| 43 | + (49.47383, 59.06250), |
| 44 | + (-58.37407, 25.31250), |
| 45 | + (52.99363, -120.93750), |
| 46 | + (-44.49024, -174.37500) |
| 47 | + }; |
45 | 48 |
|
46 | | - #endregion |
47 | | - } |
| 49 | + #endregion |
| 50 | + } |
48 | 51 |
|
49 | | - /// <summary> |
50 | | - /// Defines default encoded values and objects udśed for testing purposes |
51 | | - /// </summary> |
52 | | - public static class Polyline { |
53 | | - #region Fields |
| 52 | + /// <summary> |
| 53 | + /// Defines default encoded values and objects udśed for testing purposes |
| 54 | + /// </summary> |
| 55 | + public static class Polyline |
| 56 | + { |
| 57 | + #region Fields |
54 | 58 |
|
55 | | - /// <summary> |
56 | | - /// Defines empty string of polyline encoded coordinates. Equals to encoded <seealso cref="Coordinate.Empty"/> |
57 | | - /// </summary> |
58 | | - public static readonly string Empty = String.Empty; |
| 59 | + /// <summary> |
| 60 | + /// Defines empty string of polyline encoded coordinates. Equals to encoded <seealso cref="Coordinate.Empty"/> |
| 61 | + /// </summary> |
| 62 | + public static readonly string Empty = String.Empty; |
59 | 63 |
|
60 | | - /// <summary> |
61 | | - /// Defines polyline encoded range of invalid coordinates. Equals to encoded <seealso cref="Coordinate.Invalid"/> |
62 | | - /// </summary> |
63 | | - public static readonly string Invalid = "mnc~Qsm_ja@"; |
| 64 | + /// <summary> |
| 65 | + /// Defines polyline encoded range of invalid coordinates. Equals to encoded <seealso cref="Coordinate.Invalid"/> |
| 66 | + /// </summary> |
| 67 | + public static readonly string Invalid = "mnc~Qsm_ja@"; |
64 | 68 |
|
65 | | - /// <summary> |
66 | | - /// Defines polyline encoded range of valid coordinates. Equals to encoded <seealso cref="Coordinate.Valid"/> |
67 | | - /// </summary> |
68 | | - public static readonly string Valid = "mz}lHssngJj`gqSnx~lEcovfTnms{Zdy~qQj_deI"; |
| 69 | + /// <summary> |
| 70 | + /// Defines polyline encoded range of valid coordinates. Equals to encoded <seealso cref="Coordinate.Valid"/> |
| 71 | + /// </summary> |
| 72 | + public static readonly string Valid = "mz}lHssngJj`gqSnx~lEcovfTnms{Zdy~qQj_deI"; |
69 | 73 |
|
70 | | - #endregion |
71 | | - } |
72 | | - } |
| 74 | + #endregion |
| 75 | + } |
| 76 | + } |
73 | 77 | } |
0 commit comments