Beispiel #1
0
        public void ReturnsDataPresentForDataHasBeenSet()
        {
            var connected = new object();

            var key1 = new ConnectedDragDropKey <Type>();
            var key2 = new ConnectedDragDropKey <Assembly>();

            var dragDrop = new ConnectedDragDrop(this._uriDisconnectTable);

            dragDrop.Drag(connected);

            dragDrop.SetData(key1, typeof(ConnectedDragDropTests));
            dragDrop.SetData(key2, typeof(ConnectedDragDropTests).Assembly);

            Assert.IsTrue(dragDrop.GetDataPresent(key1));
            Assert.IsTrue(dragDrop.GetDataPresent(key2));
        }