public void Input_Naming_Convention(Type type, string expectedName) { // arrange var conventions = new DefaultNamingConventions(); // act NameString typeName = conventions.GetTypeName(type, TypeKind.InputObject); // assert Assert.Equal(expectedName, typeName.Value); }
public void Input_Naming_Convention(Type type, string expectedName) { // arrange var namingConventions = new DefaultNamingConventions( new XmlDocumentationProvider( new XmlDocumentationFileResolver(), new NoOpStringBuilderPool())); // act NameString typeName = namingConventions.GetTypeName(type, TypeKind.InputObject); // assert Assert.Equal(expectedName, typeName.Value); }