2 implementations of ValidateName
DesignSurfaceExt (1)
NameCreationServiceImp.cs (1)
85public void ValidateName(string name)
System.Windows.Forms.Design (1)
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.cs (1)
1179void INameCreationService.ValidateName(string name)
9 references to ValidateName
System.Windows.Forms.Design (2)
System\ComponentModel\Design\DesignerHost.cs (1)
412nameCreate?.ValidateName(name);
System\ComponentModel\Design\DesignerHost.Site.cs (1)
250nameService.ValidateName(value);
System.Windows.Forms.Design.Tests (7)
System\ComponentModel\Design\DesignerHostTests.cs (7)
707.Setup(s => s.ValidateName(It.IsAny<string>())) 729mockNameCreationService.Verify(s => s.ValidateName(name), Times.Once()); 736mockNameCreationService.Verify(s => s.ValidateName("name2"), Times.Once()); 1412.Setup(s => s.ValidateName("oldName")) 1415.Setup(s => s.ValidateName(expectedName)) 1436mockNameCreationService.Verify(s => s.ValidateName("oldName"), Times.Once()); 1440mockNameCreationService.Verify(s => s.ValidateName(expectedName), Times.Exactly(expectedCallCount));