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