Exemplo n.º 1
0
        public void GetPointerData_UncorrectDataTest_NullReturn()
        {
            Dictionary <string, object> correctInputData = new Dictionary <string, object>
            {
                { "NAME", "Name" },
                { "DESCRIPTION", "Description" },
                { "NORTH", 2 },
                { "EAST", 1 },
                { "VALUE", 4 }
            };

            Assert.IsNull(PointerData.GetPointerData(correctInputData));
        }
Exemplo n.º 2
0
        public void GetPointerData_SampleDataTest()
        {
            PointerData tData = new PointerData("Name", "Description", 1, 2, 3, 4);
            Dictionary <string, object> correctInputData = new Dictionary <string, object>
            {
                { "NAME", "Name" },
                { "DESCRIPTION", "Description" },
                { "NORTH", 2 },
                { "EAST", 1 },
                { "VALUE", 4 },
                { "HIGHT", 3 }
            };

            Assert.AreEqual(tData, PointerData.GetPointerData(correctInputData));
        }