public void DragDropCompleted_WhenSameControls_CallsBase() { //Arrange var behavior = new CustomGroupListBoxDragDropBehavior(); var stateMock = Mock.Create<DragDropState>(); Mock.Arrange(() => stateMock.IsSameControl).Returns(true); //Act behavior.DragDropCompleted(stateMock); }
public void Drop_WhenStateIsNull_ThrowsException() { //Arrange var behavior = new CustomGroupListBoxDragDropBehavior(); //Act behavior.Drop(null); }
public void Drop_WhenStatesDraggedItemsIsNull_ThrowsException() { //Arrange var behavior = new CustomGroupListBoxDragDropBehavior(); var stateMock = Mock.Create<DragDropState>(); Mock.Arrange(() => stateMock.DraggedItems).Returns((IEnumerable) null); //Act behavior.Drop(stateMock); }
public void PropertiesTest() { var behavior = new CustomGroupListBoxDragDropBehavior(); TestsHelper.TestPublicPropertiesGetSet(behavior); }