public async void Must_name_correctly(bool makeLowercase, string wordSeparator, string methodName, string expectedName) { var mapper = new NameAfterRelativeClassNamespaceAndClassNameAndMethodNameMapper("Junior.Route.UnitTests.AutoRouting", makeLowercase, wordSeparator); NameResult result = await mapper.MapAsync(typeof(Endpoint), typeof(Endpoint).GetMethod("Get")); Assert.That(result.Name, Is.EqualTo(expectedName)); Assert.That(result.ResultType, Is.EqualTo(NameResultType.NameMapped)); }
public void Must_name_correctly(bool makeLowercase, string wordSeparator, string expectedName) { var mapper = new NameAfterRelativeClassNamespaceAndClassNameAndMethodNameMapper("System", makeLowercase, wordSeparator); NameResult result = mapper.Map(typeof(HttpRequestBase), typeof(HttpRequestBase).GetMethod("Abort")); Assert.That(result.Name, Is.EqualTo(expectedName)); Assert.That(result.ResultType, Is.EqualTo(NameResultType.NameMapped)); }