-
Notifications
You must be signed in to change notification settings - Fork 533
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tracking std out prints #343
Changes from 1 commit
51827f1
2e5a772
f44251d
117ee6c
24e4b9f
3d4dcdf
99be41c
03f2fe1
67aba14
69fd2d7
a5be738
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -192,9 +192,29 @@ public async Task it_produces_values_when_executing_Console_output() | |
KernelEvents.OfType<ValueProduced>() | ||
.Should() | ||
.BeEquivalentTo( | ||
new ValueProduced("value one", kernelCommand, new[] { new FormattedValue(null, "value one"), }), | ||
new ValueProduced("value two", kernelCommand, new[] { new FormattedValue(null, "value two"), }), | ||
new ValueProduced("value three", kernelCommand, new[] { new FormattedValue(null, "value three"), })); | ||
new ValueProduced("value one", kernelCommand, false, new[] { new FormattedValue(null, "value one"), }), | ||
new ValueProduced("value two", kernelCommand, false, new[] { new FormattedValue(null, "value two"), }), | ||
new ValueProduced("value three", kernelCommand, false, new[] { new FormattedValue(null, "value three"), })); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why no mime type? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. myme types are done later on when formatting on raw value is done There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. null value is generated by the Formatter.MimeTypeFor method There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That's the right behavior. |
||
} | ||
|
||
[Fact] | ||
public async Task it_produces_a_final_value_if_the_code_expression_evaluates() | ||
{ | ||
var kernel = CreateKernel(); | ||
|
||
var kernelCommand = new SubmitCode(@" | ||
Console.Write(""value one""); | ||
Console.Write(""value two""); | ||
Console.Write(""value three""); | ||
5", "csharp"); | ||
colombod marked this conversation as resolved.
Show resolved
Hide resolved
|
||
await kernel.SendAsync(kernelCommand); | ||
|
||
KernelEvents.OfType<ValueProduced>() | ||
.Should() | ||
.HaveCount(4) | ||
.And | ||
.ContainSingle(e => e.IsLastValue); | ||
|
||
} | ||
|
||
[Fact(Skip = "requires support for cs8 in roslyn scripting")] | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should no longer need a fallback here.