This commit is contained in:
@@ -91,6 +91,15 @@ public sealed class ProjectLifecycleTests
|
||||
Assert.Contains("mehrfach", exception.Message);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void AktuelleAnsicht_KannAlsPdfGerendertWerden()
|
||||
{
|
||||
var pdf = new DesignerViewModel().RenderCurrentPdf();
|
||||
|
||||
Assert.True(pdf.Length > 100);
|
||||
Assert.Equal("%PDF-", System.Text.Encoding.ASCII.GetString(pdf, 0, 5));
|
||||
}
|
||||
|
||||
private static readonly byte[] OnePixelPng = Convert.FromBase64String(
|
||||
"iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNk+A8AAQUBAScY42YAAAAASUVORK5CYII=");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user