|
|
@ -114,6 +114,14 @@ namespace Squidex.Infrastructure.Log |
|
|
Assert.Equal(@"{""property"":[""2.16:30:20.1000000""]}", result); |
|
|
Assert.Equal(@"{""property"":[""2.16:30:20.1000000""]}", result); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
[Fact] |
|
|
|
|
|
public void Should_write_object_in_array() |
|
|
|
|
|
{ |
|
|
|
|
|
var result = sut.WriteArray("property1", a => a.WriteObject(b => b.WriteProperty("property2", 120))).ToString(); |
|
|
|
|
|
|
|
|
|
|
|
Assert.Equal(@"{""property1"":[{""property2"":120}]}", result); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
[Fact] |
|
|
[Fact] |
|
|
public void Should_write_datetimeoffset_value() |
|
|
public void Should_write_datetimeoffset_value() |
|
|
{ |
|
|
{ |
|
|
@ -131,7 +139,7 @@ namespace Squidex.Infrastructure.Log |
|
|
|
|
|
|
|
|
Assert.Equal($"{{\"property\":[\"{value.ToString("o")}\"]}}", result); |
|
|
Assert.Equal($"{{\"property\":[\"{value.ToString("o")}\"]}}", result); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
[Fact] |
|
|
[Fact] |
|
|
public void Should_write_nested_object() |
|
|
public void Should_write_nested_object() |
|
|
{ |
|
|
{ |
|
|
|