Пример #1
0
        public void TestScriptIsProcessed()
        {
            var scriptProcessorTask = ScriptProcessor.GetProcessScriptTask(scriptMock, () => { return(serialPortMock); });
            var task = scriptProcessorTask();

            task.Start();
            task.Wait();

            Assert.IsTrue(fileBackedUp);
            Assert.IsTrue(messageSentToArduino.Equals("1;1;0;"));
        }