Exemplo n.º 1
0
        public void TestConvertToDict_InitialValues()
        {
            BlockData testData = new BlockData(0, 0, 0, 0, 0, 0);

            Dictionary <string, double> convertedDict = testData.ConvertToDict();

            AssertDictDataValid(testData, convertedDict);
        }
Exemplo n.º 2
0
        public void TestConvertToDict_UpdateSingleValue()
        {
            BlockData testData = new BlockData(0, 0, 0, 0, 0, 0);

            testData.centerX = 25;

            Dictionary <string, double> convertedDict = testData.ConvertToDict();

            AssertDictDataValid(testData, convertedDict);
        }
Exemplo n.º 3
0
        public void TestConvertToDict_UpdateManyValues()
        {
            BlockData testData = new BlockData(0, 0, 0, 0, 0, 0);

            testData.cameraSpaceCenterX = 123;
            testData.cameraSpaceCenterY = 531;
            testData.cameraSpaceDepth   = 3345;
            testData.rHueVal            = 256;
            testData.bHueVal            = 77;

            Dictionary <string, double> convertedDict = testData.ConvertToDict();

            AssertDictDataValid(testData, convertedDict);
        }