13 writes to Content
aspire (2)
Commands\LogsCommand.cs (2)
270Content = entry.Content ?? entry.RawContent ?? string.Empty, 456Content = content,
Aspire.Cli.Tests (11)
Commands\LogsCommandTests.cs (11)
42Content = "日本語ログ émojis", // Japanese log with accented characters 69Content = "Test", 88Content = "Line with \"quotes\" and \\ backslash and\ttab", 107Content = "First line\nSecond line\r\nThird line", 280new LogLineJson { ResourceName = "frontend", Content = "Starting...", IsError = false }, 281new LogLineJson { ResourceName = "frontend", Content = "Ready", IsError = false }, 282new LogLineJson { ResourceName = "backend", Content = "Error occurred", IsError = true } 322new LogLineJson { ResourceName = "frontend", Content = "Line 1", IsError = false }, 323new LogLineJson { ResourceName = "frontend", Content = "Line 2", IsError = false }, 324new LogLineJson { ResourceName = "backend", Content = "Error", IsError = true } 351Content = "Line with\nnewline and\ttab and \"quotes\" and \\backslash",
21 references to Content
Aspire.Cli.Tests (21)
Commands\LogsCommandTests.cs (21)
58Assert.Equal(logLine.Content, deserialized.Content); 97Assert.Equal(logLine.Content, deserialized.Content); 115Assert.Equal(logLine.Content, deserialized.Content); 370Assert.Equal(logLine.Content, deserialized.Content); 476Assert.Equal("Ready to accept connections", logsOutput.Logs[0].Content); 481Assert.Equal("Hello from replica 1", logsOutput.Logs[1].Content); 486Assert.Equal("Hello from replica 2", logsOutput.Logs[2].Content); 515Assert.Equal("Ready to accept connections", logsOutput.Logs[0].Content); 520Assert.Equal("Hello from replica 1", logsOutput.Logs[1].Content); 525Assert.Equal("Hello from replica 2", logsOutput.Logs[2].Content); 638Assert.Equal("\u001b[38;5;252mReady\u001b[0m to accept connections", log.Content); 1064Assert.Contains("timeout", logsOutput.Logs[0].Content, StringComparison.OrdinalIgnoreCase); 1094Assert.Equal("Re\u001b[31mady", log.Content); 1155Assert.Contains("Connection timeout error", logsOutput.Logs[0].Content); 1187Assert.Contains("level:error", logsOutput.Logs[0].Content); 1304Assert.Equal("Second timeout error", log.Content); 1354Assert.Equal("Second timeout error", log.Content);