Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -34,21 +34,21 @@ namespace Mockolate;
sb.AppendLine("\t{");
sb.Append("\t\t/// <summary>").AppendLine();
sb.Append("\t\t/// Sets up the mock for <see cref=\"").Append(@class.ClassFullName.EscapeForXmlDoc())
.AppendLine("\" />.").AppendLine();
.Append("\" />.").AppendLine();
sb.Append("\t\t/// </summary>").AppendLine();
sb.Append("\t\tpublic IMockSetup<").Append(@class.ClassFullName).AppendLine("> SetupMock").AppendLine();
sb.Append("\t\t\t=> GetMockOrThrow(subject);").AppendLine();
sb.AppendLine();
sb.Append("\t\t/// <summary>").AppendLine();
sb.Append("\t\t/// Verifies the interactions with the mock for <see cref=\"")
.Append(@class.ClassFullName.EscapeForXmlDoc()).AppendLine("\" />.").AppendLine();
.Append(@class.ClassFullName.EscapeForXmlDoc()).Append("\" />.").AppendLine();
sb.Append("\t\t/// </summary>").AppendLine();
sb.Append("\t\tpublic IMockVerify<").Append(@class.ClassFullName).AppendLine("> VerifyMock").AppendLine();
sb.Append("\t\t\t=> GetMockOrThrow(subject);").AppendLine();
sb.AppendLine();
sb.Append("\t\t/// <summary>").AppendLine();
sb.Append("\t\t/// Verifies the interactions with the mock for <see cref=\"")
.Append(@class.ClassFullName.EscapeForXmlDoc()).AppendLine("\" />.").AppendLine();
.Append(@class.ClassFullName.EscapeForXmlDoc()).Append("\" />.").AppendLine();
sb.Append("\t\t/// </summary>").AppendLine();
sb.Append("\t\tpublic System.IDisposable MonitorMock(out MockMonitor<").Append(@class.ClassFullName)
.AppendLine("> monitor)").AppendLine();
Expand Down Expand Up @@ -179,28 +179,28 @@ private static Mock<T> GetMockOrThrow<T>(T subject) where T : System.Delegate
sb.AppendLine("\t{");
sb.Append("\t\t/// <summary>").AppendLine();
sb.Append("\t\t/// Sets up the mock for <see cref=\"").Append(@class.ClassFullName.EscapeForXmlDoc())
.AppendLine("\" />.").AppendLine();
.Append("\" />.").AppendLine();
sb.Append("\t\t/// </summary>").AppendLine();
sb.Append("\t\tpublic IMockSetup<").Append(@class.ClassFullName).AppendLine("> SetupMock").AppendLine();
sb.Append("\t\t\t=> GetMockOrThrow(subject);").AppendLine();
sb.AppendLine();
sb.Append("\t\t/// <summary>").AppendLine();
sb.Append("\t\t/// Raise events on the mock for <see cref=\"")
.Append(@class.ClassFullName.EscapeForXmlDoc()).AppendLine("\" />.").AppendLine();
.Append(@class.ClassFullName.EscapeForXmlDoc()).Append("\" />.").AppendLine();
sb.Append("\t\t/// </summary>").AppendLine();
sb.Append("\t\tpublic IMockRaises<").Append(@class.ClassFullName).AppendLine("> RaiseOnMock").AppendLine();
sb.Append("\t\t\t=> GetMockOrThrow(subject);").AppendLine();
sb.AppendLine();
sb.Append("\t\t/// <summary>").AppendLine();
sb.Append("\t\t/// Verifies the interactions with the mock for <see cref=\"")
.Append(@class.ClassFullName.EscapeForXmlDoc()).AppendLine("\" />.").AppendLine();
.Append(@class.ClassFullName.EscapeForXmlDoc()).Append("\" />.").AppendLine();
sb.Append("\t\t/// </summary>").AppendLine();
sb.Append("\t\tpublic IMockVerify<").Append(@class.ClassFullName).AppendLine("> VerifyMock").AppendLine();
sb.Append("\t\t\t=> GetMockOrThrow(subject);").AppendLine();
sb.AppendLine();
sb.Append("\t\t/// <summary>").AppendLine();
sb.Append("\t\t/// Verifies the interactions with the mock for <see cref=\"")
.Append(@class.ClassFullName.EscapeForXmlDoc()).AppendLine("\" />.").AppendLine();
.Append(@class.ClassFullName.EscapeForXmlDoc()).Append("\" />.").AppendLine();
sb.Append("\t\t/// </summary>").AppendLine();
sb.Append("\t\tpublic System.IDisposable MonitorMock(out MockMonitor<").Append(@class.ClassFullName)
.AppendLine("> monitor)").AppendLine();
Expand Down Expand Up @@ -952,7 +952,7 @@ private static void AppendInvokedExtensions(StringBuilder sb, Class @class,
.Append(".").Append(method.Name.EscapeForXmlDoc()).Append("(")
.Append(string.Join(", ",
method.Parameters.Select(p => p.RefKind.GetString() + p.Type.Fullname.EscapeForXmlDoc())))
.Append(")\"/> with the given <paramref name=\"parameters\"/>..")
.Append(")\"/> with the given <paramref name=\"parameters\"/>.")
.AppendLine();
sb.Append("\t\t/// </summary>").AppendLine();
sb.Append("\t\tpublic VerificationResult<").Append(@class.ClassFullName).Append("> ").Append(method.Name)
Expand Down
Loading