private bool GetArgumentNames(ExpressionData expressionData, out IReadOnlyList <string> argumentNames) { if (_typeToArgumentNames == null) { argumentNames = new List <string>(); return(false); } if (_typeToArgumentNames.TryGetValue(expressionData.Type.TrimEnd('?'), out argumentNames)) { return(true); } var typeWithoutNamespace = _concreteTypeAnalyzer.GetTypeWithoutNamespace(expressionData.Type); return(_typeToArgumentNames.TryGetValue(typeWithoutNamespace, out argumentNames)); }
public void GetForGenericType_RemoveNamespace_FromType(string input, string expected) { var result = _concreteTypeAnalyzer.GetTypeWithoutNamespace(input); result.Should().Be(expected); }