public void Should_format_image() { var source = new AssetEntity { Metadata = new AssetMetadata { ["pixelWidth"] = JsonValue.Create(128), ["pixelHeight"] = JsonValue.Create(55) }, Type = AssetType.Image }; var formatted = sut.Format(source); Assert.Equal(new[] { "128x55px" }, formatted); }
public void Should_format_to_empty() { var source = new AssetEntity(); var formatted = sut.Format(source); Assert.Empty(formatted); }