Пример #1
0
        public void PutOnHold_Args()
        {
            // Setup
            var sut = new ProcessingState("proja", _env.Settings)
            {
                SRState = ProcessingState.SendReceiveStates.IDLE
            };

            // Exercise
            sut.PutOnHold("{0} {1}{2}", "Hello", "World", "!");

            // Verify
            Assert.That(sut.SRState, Is.EqualTo(ProcessingState.SendReceiveStates.HOLD));
            Assert.That(sut.ErrorCode, Is.EqualTo((int)ProcessingState.ErrorCodes.Unspecified));
            Assert.That(sut.ErrorMessage, Is.EqualTo("Hello World!"));
        }