public void NoPType() { MockDataHandler idh = new MockDataHandler(); MockSender mspr = new ThreadedMockSender(null, null, idh, 0); byte[] data = new byte[1024]; RNGCryptoServiceProvider rng = new RNGCryptoServiceProvider(); rng.GetBytes(data); MemBlock mdata = MemBlock.Reference(data); object lr = idh.LastReceived; mspr.Send(mdata); while(lr == idh.LastReceived) { Thread.Sleep(0); } Assert.AreEqual(mdata, idh.LastReceived, "No PType MockSender"); }
public void NoPType() { MockDataHandler idh = new MockDataHandler(); MockSender mspr = new ThreadedMockSender(null, null, idh, 0); byte[] data = new byte[1024]; RNGCryptoServiceProvider rng = new RNGCryptoServiceProvider(); rng.GetBytes(data); MemBlock mdata = MemBlock.Reference(data); object lr = idh.LastReceived; mspr.Send(mdata); while (lr == idh.LastReceived) { Thread.Sleep(0); } Assert.AreEqual(mdata, idh.LastReceived, "No PType MockSender"); }