1 write to _changedServiceMock
System.Windows.Forms.Design.Tests (1)
System\Windows\Forms\Design\SelectionUIHandlerTests.cs (1)
26_changedServiceMock = new();
3 references to _changedServiceMock
System.Windows.Forms.Design.Tests (3)
System\Windows\Forms\Design\SelectionUIHandlerTests.cs (3)
34_selectionUIHandlerMock.Protected().Setup<object>("GetService", typeof(IComponentChangeService)).Returns(_changedServiceMock.Object); 96_changedServiceMock.Setup(cs => cs.OnComponentChanging(It.IsAny<object>(), It.IsAny<PropertyDescriptor>())).Throws(CheckoutException.Canceled); 107_changedServiceMock.Setup(cs => cs.OnComponentChanging(It.IsAny<object>(), It.IsAny<PropertyDescriptor>())).Throws<InvalidOperationException>();