Lines Matching refs:service

17             var service = new TestDesignerOptionService();  in CreateOptionCollection_CreateMultipleTimes_ReturnsExpected()
19 …signerOptionService.DesignerOptionCollection options1 = service.DoCreateOptionCollection(service.O… in CreateOptionCollection_CreateMultipleTimes_ReturnsExpected()
23 Assert.Same(service.Options, options1.Parent); in CreateOptionCollection_CreateMultipleTimes_ReturnsExpected()
25 …signerOptionService.DesignerOptionCollection options2 = service.DoCreateOptionCollection(service.O… in CreateOptionCollection_CreateMultipleTimes_ReturnsExpected()
26 Assert.Equal(2, service.Options.Count); in CreateOptionCollection_CreateMultipleTimes_ReturnsExpected()
30 Assert.Same(service.Options, options2.Parent); in CreateOptionCollection_CreateMultipleTimes_ReturnsExpected()
32 …DesignerOptionService.DesignerOptionCollection[] { options1, options2 }, service.Options.Cast<obje… in CreateOptionCollection_CreateMultipleTimes_ReturnsExpected()
38 var service = new TestDesignerOptionService(); in CreateOptionCollection_NullParent_ThrowsArgumentNullException()
39 …AssertExtensions.Throws<ArgumentNullException>("parent", () => service.DoCreateOptionCollection(nu… in CreateOptionCollection_NullParent_ThrowsArgumentNullException()
45 var service = new TestDesignerOptionService(); in CreateOptionCollection_NullName_ThrowsArgumentNullException()
46 …tExtensions.Throws<ArgumentNullException>("name", () => service.DoCreateOptionCollection(service.O… in CreateOptionCollection_NullName_ThrowsArgumentNullException()
52 var service = new TestDesignerOptionService(); in CreateOptionCollection_EmptyName_ThrowsArgumentException()
53 …tensions.Throws<ArgumentException>("name.Length", () => service.DoCreateOptionCollection(service.O… in CreateOptionCollection_EmptyName_ThrowsArgumentException()
59 var service = new TestDesignerOptionService(); in Options_Get_ReturnsExpected()
60 DesignerOptionService.DesignerOptionCollection options = service.Options; in Options_Get_ReturnsExpected()
61 Assert.Same(options, service.Options); in Options_Get_ReturnsExpected()
72 var service = new TestDesignerOptionService(); in Options_IListProperties_ReturnsExpected()
73 IList options = service.Options; in Options_IListProperties_ReturnsExpected()
74 Assert.Same(options, service.Options); in Options_IListProperties_ReturnsExpected()
86 var service = new TestDesignerOptionService(); in IList_Modification_ThrowsNotSupportedException()
87 IList options = service.Options; in IList_Modification_ThrowsNotSupportedException()
100 var service = new TestDesignerOptionService(); in IndexOf_ValueExists_ReturnsExpected()
101 …esignerOptionService.DesignerOptionCollection options = service.DoCreateOptionCollection(service.O… in IndexOf_ValueExists_ReturnsExpected()
103 Assert.Equal(0, service.Options.IndexOf(options)); in IndexOf_ValueExists_ReturnsExpected()
104 Assert.Equal(0, ((IList)service.Options).IndexOf(options)); in IndexOf_ValueExists_ReturnsExpected()
110 var service = new TestDesignerOptionService(); in IndexOf_NoSuchOptions_ReturnsNegativeOne()
111 …esignerOptionService.DesignerOptionCollection options = service.DoCreateOptionCollection(service.O… in IndexOf_NoSuchOptions_ReturnsNegativeOne()
113 Assert.Equal(-1, service.Options.IndexOf(service.Options)); in IndexOf_NoSuchOptions_ReturnsNegativeOne()
114 Assert.Equal(-1, service.Options.IndexOf(null)); in IndexOf_NoSuchOptions_ReturnsNegativeOne()
115 Assert.Equal(-1, ((IList)service.Options).IndexOf(service.Options)); in IndexOf_NoSuchOptions_ReturnsNegativeOne()
121 var service = new TestDesignerOptionService(); in Contains_ValueExists_ReturnsExpected()
122 …esignerOptionService.DesignerOptionCollection options = service.DoCreateOptionCollection(service.O… in Contains_ValueExists_ReturnsExpected()
124 Assert.Equal(0, service.Options.IndexOf(options)); in Contains_ValueExists_ReturnsExpected()
125 Assert.Equal(0, ((IList)service.Options).IndexOf(options)); in Contains_ValueExists_ReturnsExpected()
131 var service = new TestDesignerOptionService(); in Contains_NoSuchOptions_ReturnsFalse()
132 IList options = service.DoCreateOptionCollection(service.Options, "Name", "Value"); in Contains_NoSuchOptions_ReturnsFalse()
134 Assert.False(options.Contains(service.Options)); in Contains_NoSuchOptions_ReturnsFalse()
143 var service = new TestDesignerOptionService(); in Indexer_ValidName_ReturnsExpected()
144 …esignerOptionService.DesignerOptionCollection options = service.DoCreateOptionCollection(service.O… in Indexer_ValidName_ReturnsExpected()
146 Assert.Same(options, service.Options[name]); in Indexer_ValidName_ReturnsExpected()
154 var service = new TestDesignerOptionService(); in Indexer_InvalidName_ReturnsNull()
155 service.DoCreateOptionCollection(service.Options, "Name", "Value"); in Indexer_InvalidName_ReturnsNull()
157 Assert.Null(service.Options[name]); in Indexer_InvalidName_ReturnsNull()
163 var service = new TestDesignerOptionService(); in Indexer_ValidIndex_ReturnsExpected()
164 …esignerOptionService.DesignerOptionCollection options = service.DoCreateOptionCollection(service.O… in Indexer_ValidIndex_ReturnsExpected()
166 Assert.Same(options, service.Options[0]); in Indexer_ValidIndex_ReturnsExpected()
167 Assert.Same(options, ((IList)service.Options)[0]); in Indexer_ValidIndex_ReturnsExpected()
175 var service = new TestDesignerOptionService(); in Indexer_InvalidIndex_ThrowsIndexOutOfRangeException()
176 service.DoCreateOptionCollection(service.Options, "Name", "Value"); in Indexer_InvalidIndex_ThrowsIndexOutOfRangeException()
178 Assert.Throws<IndexOutOfRangeException>(() => service.Options[index]); in Indexer_InvalidIndex_ThrowsIndexOutOfRangeException()
179 Assert.Throws<IndexOutOfRangeException>(() => ((IList)service.Options)[index]); in Indexer_InvalidIndex_ThrowsIndexOutOfRangeException()
185 var service = new TestDesignerOptionService(); in Properties_GetBeforeAddingChild_ReturnsEmpty()
186 Assert.Empty(service.Options.Properties); in Properties_GetBeforeAddingChild_ReturnsEmpty()
188 …esignerOptionService.DesignerOptionCollection options = service.DoCreateOptionCollection(service.O… in Properties_GetBeforeAddingChild_ReturnsEmpty()
189 Assert.Empty(service.Options.Properties); in Properties_GetBeforeAddingChild_ReturnsEmpty()
195 var service = new TestDesignerOptionService(); in Properties_GetAfterAddingChild_ReturnsNonEmpty()
197 …esignerOptionService.DesignerOptionCollection options = service.DoCreateOptionCollection(service.O… in Properties_GetAfterAddingChild_ReturnsNonEmpty()
198 Assert.NotEmpty(service.Options.Properties); in Properties_GetAfterAddingChild_ReturnsNonEmpty()
206 var service = new TestDesignerOptionService(); in Properties_PropertyDescriptorAttributes_Success()
207 …esignerOptionService.DesignerOptionCollection options = service.DoCreateOptionCollection(service.O… in Properties_PropertyDescriptorAttributes_Success()
233 var service = new TestDesignerOptionService(); in DesignerOptionConverterGetProperties_ValidValue_ReturnsExpected()
234 …esignerOptionService.DesignerOptionCollection options = service.DoCreateOptionCollection(service.O… in DesignerOptionConverterGetProperties_ValidValue_ReturnsExpected()
235 service.DoCreateOptionCollection(options, "Name", null); in DesignerOptionConverterGetProperties_ValidValue_ReturnsExpected()
282 var service = new TestDesignerOptionService(); in CopyTo_ValidRange_Success()
284 …signerOptionService.DesignerOptionCollection options1 = service.DoCreateOptionCollection(service.O… in CopyTo_ValidRange_Success()
285 …signerOptionService.DesignerOptionCollection options2 = service.DoCreateOptionCollection(service.O… in CopyTo_ValidRange_Success()
288 service.Options.CopyTo(destination, 1); in CopyTo_ValidRange_Success()
296 var service = new PopulatingDesignerOptionService(); in Properties_GetWhenPopulateOptionCollectionOverriden_ReturnsExpected()
297 DesignerOptionService.DesignerOptionCollection options = service.Options; in Properties_GetWhenPopulateOptionCollectionOverriden_ReturnsExpected()
313 var service = new TestDesignerOptionService(); in ShowDialog_Invoke_ReturnsFalseByDefault()
314 Assert.False(service.DoShowDialog(null, null)); in ShowDialog_Invoke_ReturnsFalseByDefault()
322 var service = new TestDesignerOptionService(); in GetOptionValue_NotNested_ReturnsExpected()
323 IDesignerOptionService iService = service; in GetOptionValue_NotNested_ReturnsExpected()
324 service.DoCreateOptionCollection(service.Options, "Name", value); in GetOptionValue_NotNested_ReturnsExpected()
334 var service = new TestDesignerOptionService(); in GetOptionValue_Nested_ReturnsExpected()
335 IDesignerOptionService iService = service; in GetOptionValue_Nested_ReturnsExpected()
336 …esignerOptionService.DesignerOptionCollection options = service.DoCreateOptionCollection(service.O… in GetOptionValue_Nested_ReturnsExpected()
337 service.DoCreateOptionCollection(options, "SubName", value); in GetOptionValue_Nested_ReturnsExpected()
350 var service = new TestDesignerOptionService(); in GetOptionValue_NoSuchValue_ReturnsNull()
351 IDesignerOptionService iService = service; in GetOptionValue_NoSuchValue_ReturnsNull()
352 …esignerOptionService.DesignerOptionCollection options = service.DoCreateOptionCollection(service.O… in GetOptionValue_NoSuchValue_ReturnsNull()
353 service.DoCreateOptionCollection(options, "SubName", value); in GetOptionValue_NoSuchValue_ReturnsNull()
361 IDesignerOptionService service = new TestDesignerOptionService(); in GetOptionValue_NullPageName_ThrowsArgumentNullException()
362 …AssertExtensions.Throws<ArgumentNullException>("pageName", () => service.GetOptionValue(null, "Val… in GetOptionValue_NullPageName_ThrowsArgumentNullException()
368 IDesignerOptionService service = new TestDesignerOptionService(); in GetOptionValue_NullValueName_ThrowsArgumentNullException()
369 …AssertExtensions.Throws<ArgumentNullException>("valueName", () => service.GetOptionValue("PageName… in GetOptionValue_NullValueName_ThrowsArgumentNullException()
377 var service = new TestDesignerOptionService(); in SetOptionValue_NotNested_ReturnsExpected()
378 IDesignerOptionService iService = service; in SetOptionValue_NotNested_ReturnsExpected()
379 service.DoCreateOptionCollection(service.Options, "Name", value); in SetOptionValue_NotNested_ReturnsExpected()
390 var service = new TestDesignerOptionService(); in SetOptionValue_Nested_ReturnsExpected()
391 IDesignerOptionService iService = service; in SetOptionValue_Nested_ReturnsExpected()
392 …esignerOptionService.DesignerOptionCollection options = service.DoCreateOptionCollection(service.O… in SetOptionValue_Nested_ReturnsExpected()
393 service.DoCreateOptionCollection(options, "SubName", value); in SetOptionValue_Nested_ReturnsExpected()
407 var service = new TestDesignerOptionService(); in SetOptionValue_NoSuchValue_Nop()
408 IDesignerOptionService iService = service; in SetOptionValue_NoSuchValue_Nop()
409 …esignerOptionService.DesignerOptionCollection options = service.DoCreateOptionCollection(service.O… in SetOptionValue_NoSuchValue_Nop()
410 service.DoCreateOptionCollection(options, "SubName", value); in SetOptionValue_NoSuchValue_Nop()
418 IDesignerOptionService service = new TestDesignerOptionService(); in SetOptionValue_NullPageName_ThrowsArgumentNullException()
419 …AssertExtensions.Throws<ArgumentNullException>("pageName", () => service.SetOptionValue(null, "Val… in SetOptionValue_NullPageName_ThrowsArgumentNullException()
425 IDesignerOptionService service = new TestDesignerOptionService(); in SetOptionValue_NullValueName_ThrowsArgumentNullException()
426 …AssertExtensions.Throws<ArgumentNullException>("valueName", () => service.SetOptionValue("PageName… in SetOptionValue_NullValueName_ThrowsArgumentNullException()
432 var service = new TestDesignerOptionService(); in ShowDialog_NonNestedValue_Success()
433 …esignerOptionService.DesignerOptionCollection options = service.DoCreateOptionCollection(service.O… in ShowDialog_NonNestedValue_Success()
436 Assert.Equal("Value", service.ShowDialogValue); in ShowDialog_NonNestedValue_Success()
442 var service = new TestDesignerOptionService(); in ShowDialog_NestedValue_Success()
443 …esignerOptionService.DesignerOptionCollection options = service.DoCreateOptionCollection(service.O… in ShowDialog_NestedValue_Success()
444 service.DoCreateOptionCollection(options, "Name", "Value"); in ShowDialog_NestedValue_Success()
447 Assert.Equal("Value", service.ShowDialogValue); in ShowDialog_NestedValue_Success()
453 var service = new TestDesignerOptionService(); in ShowDialog_NullValue_Success()
454 …esignerOptionService.DesignerOptionCollection options = service.DoCreateOptionCollection(service.O… in ShowDialog_NullValue_Success()
455 service.DoCreateOptionCollection(options, "Name", null); in ShowDialog_NullValue_Success()
458 Assert.Equal("Default", service.ShowDialogValue); in ShowDialog_NullValue_Success()