public void SupportsCSharpExpressions() { // Arrange/Act var component = CompileToComponent(@" @(""Hello"") @((object)null) @(123) @(new object()) "); // Assert var frames = GetRenderTree(component); Assert.Collection(frames, frame => AssertFrame.Text(frame, "Hello", 0), frame => AssertFrame.MarkupWhitespace(frame, 1), frame => AssertFrame.TextWhitespace(frame, 2), // @((object)null) frame => AssertFrame.MarkupWhitespace(frame, 3), frame => AssertFrame.Text(frame, "123", 4), frame => AssertFrame.MarkupWhitespace(frame, 5), frame => AssertFrame.Text(frame, new object().ToString(), 6)); }