public class test2InAnotherProject
{
private readonly ITestOutputHelper output;
public test2InAnotherProject(ITestOutputHelper output)
{
this.output = output;
}
int Diff(int a, int b)
{
return (a - b);
}
int Div(int a, int b)
{
return (b / a);
}
[Fact]
public void Test2()
{
int a = 2, b = 4;
output.WriteLine("Test1: Project 2 in old library");
int c = Diff(a, b);
Assert.Equal(c, (a - b));
output.WriteLine("Test1: Asssert done Project 2 in old library");
}
[Fact]
public void Test3()
{
int …Run Code Online (Sandbox Code Playgroud) 尝试过
${longdate:format=yyyy-MM-ddTHH\\:mm:ss.ffffK}
Run Code Online (Sandbox Code Playgroud)
但它没有使用 Nlog 将偏移量写入文件中。尝试过
${date:format=yyyy-MM-ddTHH\\:mm:ss.ffffK}
Run Code Online (Sandbox Code Playgroud)
它给出了偏移量和时间输出。甚至尝试zzz代替K.
我们可以给出在 Nlog consoleLayout.Text 中获取 UTC 偏移量的任何其他用法吗?