Exemple #1
0
        public void UpdateFromFirmware()
        {
            string modelPath = Path.Combine(Directory.GetCurrentDirectory(), "../../../Machine/JSON/stateKey.json");
            string jsonText  = System.IO.File.ReadAllText(modelPath);

            using JsonDocument parsedJson = JsonDocument.Parse(jsonText);

            MachineModel model   = new MachineModel();
            bool         success = model.UpdateFromFirmwareModel("state", parsedJson.RootElement);

            Assert.IsTrue(success);
        }