public void EntitySubregionWithSkillChallengeToDictionary()
        {
            SkillChallenge skillChallenge = new SkillChallenge()
            {
                Coordinates = new Point2D(10, 20)
            };
            Subregion subregion = new Subregion()
            {
                SkillChallenges = new List <SkillChallenge>()
                {
                    skillChallenge
                }
            };

            var expected = skillChallenge.ToDictionary();
            var actualPointOfInterest = (ICollection <object>)subregion.ToDictionary()["skill_challenges"];
            var actual = (IDictionary <string, object>)actualPointOfInterest.First();

            Assert.AreEqual(expected, actual);
        }
        public void EntitySkillChallengeToDictionary()
        {
            Point2D coord = new Point2D(500, 1000);

            var expected = new Dictionary <string, object>()
            {
                { "coord", new Dictionary <string, double>()
                  {
                      { "x", coord.X },
                      { "y", coord.Y }
                  } },
            };

            SkillChallenge skillChallenge = new SkillChallenge()
            {
                Coordinates = coord,
            };

            var actual = skillChallenge.ToDictionary();

            Assert.AreEqual(expected, actual, "Skill Challenge");
            CollectionAssert.AreEquivalent((IDictionary <string, double>)expected["coord"],
                                           (IDictionary <string, double>)actual["coord"], "Coords");
        }