public void AppendPropertySignature_ComplexProperty() { // arrange var builder = new StringBuilder(); var method = typeof(AppendPropertySignatureData).GetMethod(nameof(AppendPropertySignatureData.ComplexProperty)); // act CakeFileIntellisenseGenerator.AppendPropertySignature(builder, method); // assert builder.ToString().Should().Be($"{Constants.AliasesModifier}System.Collections.Generic.IDictionary<System.String, System.Collections.Generic.IList<System.Int32>> {nameof(AppendPropertySignatureData.ComplexProperty)}{Constants.ThrowNotSupportedExceptionArrowExpression}{Environment.NewLine}"); }
private void AppendMethodSignatureAssertHelper(string methodName, string expectedReturnTypeRepresentation, string expectedArgumentsRepresentation) { // arrange var builder = new StringBuilder(); var method = typeof(AppendPropertySignatureData).GetMethod(methodName); // act CakeFileIntellisenseGenerator.AppendMethodSignature(builder, method); // assert builder.ToString().Should().Be($"{Constants.AliasesModifier}{expectedReturnTypeRepresentation} {methodName}{expectedArgumentsRepresentation}{Constants.ThrowNotSupportedExceptionArrowExpression}{Environment.NewLine}"); }