Tests.StarSystemDataTests.TestUgrasin C# (CSharp) Method

TestUgrasin() private method

private TestUgrasin ( ) : void
return void
        public void TestUgrasin()
        {
            string data = @"{""z"": 11.28125, ""y"": 88.625, ""updated_at"": 1451665574, ""needs_permit"": 0, ""faction"": ""Ugrasin Purple Advanced Industry"", ""x"": -106.71875, ""is_populated"": true, ""population"": 1261, ""allegiance"": ""Federation"", ""government"": ""Corporate"", ""stations"": [{""prohibited_commodities"": [""Narcotics"", ""Tobacco"", ""Combat Stabilisers"", ""Imperial Slaves"", ""Slaves"", ""Personal Weapons"", ""Battle Weapons"", ""Toxic Waste""], ""has_shipyard"": 0, ""has_commodities"": 1, ""shipyard_updated_at"": null, ""export_commodities"": [""Hydrogen Fuel"", ""Gallite"", ""Lepidolite""], ""import_commodities"": [""Explosives"", ""Mineral Extractors"", ""Bioreducing Lichen""], ""type"": ""Mining Outpost"", ""is_planetary"": 0, ""allegiance"": ""Federation"", ""distance_to_star"": 4820, ""has_rearm"": 0, ""name"": ""Kuo Settlement"", ""has_repair"": 1, ""has_outfitting"": 1, ""type_id"": 6, ""system_id"": 18166, ""updated_at"": 1444494512, ""faction"": ""Ugrasin Purple Advanced Industry"", ""market_updated_at"": 1453582032, ""has_market"": 1, ""selling_ships"": [], ""has_refuel"": 1, ""selling_modules"": [738, 739, 740, 741, 742, 753, 754, 755, 756, 757, 763, 764, 765, 766, 767, 768, 769, 770, 837, 839, 840, 843, 846, 847, 848, 850, 851, 852, 855, 867, 870, 876, 877, 878, 879, 880, 884, 885, 886, 887, 888, 891, 892, 893, 894, 895, 896, 897, 898, 900, 962, 963, 964, 965, 967, 968, 969, 970, 1000, 1005, 1010, 1037, 1038, 1039, 1043, 1044, 1047, 1048, 1066, 1071, 1072, 1106, 1107, 1111, 1112, 1116, 1117, 1118, 1120, 1122, 1123, 1125, 1191, 1192, 1193, 1194, 1195, 1196, 1197, 1201, 1202, 1203, 1204, 1205, 1207, 1227, 1228, 1229, 1234, 1242, 1243, 1245, 1246, 1264, 1272, 1280, 1286, 1287, 1290, 1291, 1294, 1295, 1296, 1297, 1299, 1300, 1301, 1302, 1303, 1305, 1306, 1307, 1310, 1311, 1351, 1357, 1358, 1366, 1395, 1396, 1397, 1400, 1401, 1404, 1405, 1409, 1415, 1416, 1417, 1419, 1420, 1421, 1424, 1425, 1426, 1429, 1430, 1518, 1519, 1520, 1521, 1522, 1523, 1530, 1531, 1532, 1533, 1534, 1535, 1536, 1537], ""government"": ""Corporate"", ""economies"": [""Extraction""], ""outfitting_updated_at"": 1453582033, ""has_blackmarket"": 0, ""max_landing_pad_size"": ""M"", ""state"": ""None"", ""id"": 12952}], ""state"": ""None"", ""power"": null, ""name"": ""Ugrasin"", ""security"": ""Low"", ""simbad_ref"": """", ""power_state"": null, ""primary_economy"": null, ""id"": 18166}";
            StarSystem starSystem = DataProviderService.StarSystemFromEDDP(data, null, null, null);

            Assert.AreEqual("Ugrasin", starSystem.name);
            Assert.AreEqual(1, starSystem.stations.Count);
            Assert.AreEqual(starSystem.z, (decimal)11.28125);
        }
    }