# Conflicts: # LehrerApp.TemplateDesigner.Tests/ProjectLifecycleTests.cs # LehrerApp.TemplateDesigner/DesignerViewModel.cs # LehrerApp.TemplateDesigner/MainWindow.axaml # LehrerApp.Templating/LayoutParser.cs # LehrerApp.Templating/QuestTemplateRenderer.cs
This commit is contained in:
@@ -108,6 +108,15 @@ public sealed class ProjectLifecycleTests
|
||||
Assert.Empty(parsed.ContentFlows.Single().Elements);
|
||||
}
|
||||
|
||||
[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