Пример #1
0
        public void Find_Engine_Name_From_JSON()
        {
            string         message        = File.ReadAllText("./InputFiles/FixedDesign_Simulation.json");
            JsonOperations jsonOperations = new JsonOperations();
            string         engineName     = jsonOperations.FindEngineName(message);

            Assert.True(!string.IsNullOrEmpty(engineName));
        }
Пример #2
0
        public void Invalid_JSON_Find_Engine_Name()
        {
            string         message        = File.ReadAllText("./InputFiles/Invalid_FixedDesign_SimulationResults.json");
            JsonOperations jsonOperations = new JsonOperations();
            string         engineName     = jsonOperations.FindEngineName(message);

            Assert.True(string.IsNullOrEmpty(engineName));
        }