Esempio n. 1
0
        public void VerifyThatStartDragOnRequirementRowReturnsExpectedPayloadAndEffect()
        {
            var dragInfo = new Mock <IDragInfo>();

            dragInfo.SetupProperty(x => x.Payload);
            dragInfo.SetupProperty(x => x.Effects);

            var containerRow = new RequirementsSpecificationRowViewModel(this.reqSpec, this.session.Object, null);
            var row          = new RequirementRowViewModel(this.req, this.session.Object, containerRow);

            row.StartDrag(dragInfo.Object);

            Assert.AreEqual(this.req, dragInfo.Object.Payload);
            Assert.AreEqual(DragDropEffects.All, dragInfo.Object.Effects);
        }