Пример #1
0
        public void ru_culture()
        {
            Thread.CurrentThread.CurrentUICulture = CultureInfo.GetCultureInfo("ru");

            var actual = string.Empty;
            var init   = new Lambda.StateRead(null, null, null);

            try
            {
                init.PowerOn(null);
            }
            catch (LambdaFailureException exception)
            {
                actual = exception.Message;
            }

            const string expected = "Инициализация устройства выполнена ранее";

            Assert.AreEqual(expected, actual);
        }
Пример #2
0
        public void en_culture()
        {
            Thread.CurrentThread.CurrentUICulture = CultureInfo.GetCultureInfo("en");

            var actual = string.Empty;
            var init   = new Lambda.StateRead(null, null, null);

            try
            {
                init.PowerOn(null);
            }
            catch (LambdaFailureException exception)
            {
                actual = exception.Message;
            }

            const string expected = "Initializing device done previously";

            Assert.AreEqual(expected, actual);
        }
Пример #3
0
        public void unexpected_powerOn_method()
        {
            var init = new Lambda.StateRead(_logger, _lambdaProtocol, _unit);

            init.PowerOn(null);
        }