public void TestAddQueue() { var obj = new InnerQueue(); obj.AddQueue<string>(); obj.AddQueue<int>(); obj.AddQueue<bool>(); Assert.AreEqual(obj.AddQueue<bool>(), false); }
public void TestAddQueue() { var obj = new InnerQueue(); obj.AddQueue <string>(); obj.AddQueue <int>(); obj.AddQueue <bool>(); Assert.AreEqual(obj.AddQueue <bool>(), false); }
public void TestAddMessageToQueue() { var obj=new InnerQueue(); obj.AddQueue<int>(); obj.AddQueue<string>(); var queue = obj.GetQueue(new MyQueue<int>()); var queueString = obj.GetQueue(typeof (string)); queueString.Enqueue("Test1"); queue.Enqueue(10); Assert.AreEqual(queue.Dequeue(), 10); Assert.AreEqual(queueString.Dequeue(), "Test1"); }
public void TestAddMessageToQueue() { var obj = new InnerQueue(); obj.AddQueue <int>(); obj.AddQueue <string>(); var queue = obj.GetQueue(new MyQueue <int>()); var queueString = obj.GetQueue(typeof(string)); queueString.Enqueue("Test1"); queue.Enqueue(10); Assert.AreEqual(queue.Dequeue(), 10); Assert.AreEqual(queueString.Dequeue(), "Test1"); }
public void TestFindQueue() { var obj = new InnerQueue(); obj.AddQueue <int>(); Assert.AreEqual(obj.GetQueue(new MyQueue <int>()).QueueType, new MyQueue <int>().QueueType); }
public void TestFindQueue() { var obj = new InnerQueue(); obj.AddQueue<int>(); Assert.AreEqual(obj.GetQueue(new MyQueue<int>()).QueueType, new MyQueue<int>().QueueType); }