public void GetBytesTest()
		{
			DtmfEventMessage target = new DtmfEventMessage(); // TODO: Initialize to an appropriate value
			byte[] bytes = null; // TODO: Initialize to an appropriate value
			int startIndex = 0; // TODO: Initialize to an appropriate value
			target.GetBytes(bytes, startIndex);
			Assert.Inconclusive("A method that does not return a value cannot be verified.");
		}
Example #2
0
		public static DtmfEventMessage[] Parse(byte[] bytes, int startIndex, int length)
		{
			if ((length - startIndex) % Length != 0)
				throw new ParseException(@"DtmfEventMessage: Invalid message length");
			int count = (length - startIndex) / Length;

			var messages = new DtmfEventMessage[count];

			for (int i = 0; i < count; i++)
			{
				messages[i] = new DtmfEventMessage();
				messages[i].Parse2(bytes, startIndex, length);

				startIndex += Length;
			}

			return messages;
		}
Example #3
0
        public static DtmfEventMessage[] Parse(byte[] bytes, int startIndex, int length)
        {
            if ((length - startIndex) % Length != 0)
            {
                throw new ParseException(@"DtmfEventMessage: Invalid message length");
            }
            int count = (length - startIndex) / Length;

            var messages = new DtmfEventMessage[count];

            for (int i = 0; i < count; i++)
            {
                messages[i] = new DtmfEventMessage();
                messages[i].Parse2(bytes, startIndex, length);

                startIndex += Length;
            }

            return(messages);
        }