コード例 #1
0
ファイル: EdsmDataTests.cs プロジェクト: Deekfoz/EDDI
        public void TestSystemsSphere()
        {
            string systemName = "Sol";
            List <Dictionary <string, object> > sphereSystems = StarMapService.GetStarMapSystemsSphere(systemName, 0, 10, false, false, false, false);

            Assert.AreEqual(12, sphereSystems.Count);
        }
コード例 #2
0
        public void TestSystemsSphere()
        {
            string         resource = "api-v1/sphere-systems";
            string         json     = Encoding.UTF8.GetString(Resources.sphereAroundSol);
            List <JObject> data     = new List <JObject>();

            fakeEdsmRestClient.Expect(resource, json, data);
            string systemName = "Sol";

            List <Dictionary <string, object> > sphereSystems = fakeEdsmService.GetStarMapSystemsSphere(systemName, 0, 10, false, false, false, false);

            Assert.AreEqual(12, sphereSystems.Count);
        }