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>();