Make ExplicitDestinationType a byte a fix CanCreateDocumentWithOutline() failing test

This commit is contained in:
BobLd 2025-04-06 10:08:26 +01:00
parent b8bd40e486
commit 5439c07ef5
2 changed files with 11 additions and 11 deletions

View File

@ -1252,18 +1252,18 @@
bookmarks.GetNodes().OfType<UriBookmarkNode>().Select(node => node.Uri));
Assert.Equal(
new[]
new byte[]
{
ExplicitDestinationType.XyzCoordinates,
ExplicitDestinationType.FitPage,
ExplicitDestinationType.FitRectangle,
ExplicitDestinationType.FitBoundingBox,
ExplicitDestinationType.FitBoundingBoxHorizontally,
ExplicitDestinationType.FitBoundingBoxVertically,
ExplicitDestinationType.FitHorizontally,
ExplicitDestinationType.FitVertically,
(byte)ExplicitDestinationType.XyzCoordinates,
(byte)ExplicitDestinationType.FitPage,
(byte)ExplicitDestinationType.FitRectangle,
(byte)ExplicitDestinationType.FitBoundingBox,
(byte)ExplicitDestinationType.FitBoundingBoxHorizontally,
(byte)ExplicitDestinationType.FitBoundingBoxVertically,
(byte)ExplicitDestinationType.FitHorizontally,
(byte)ExplicitDestinationType.FitVertically,
},
bookmarks.GetNodes().OfType<DocumentBookmarkNode>().Select(node => node.Destination.Type));
bookmarks.GetNodes().OfType<DocumentBookmarkNode>().Select(node => (byte)node.Destination.Type));
}
}

View File

@ -3,7 +3,7 @@
/// <summary>
/// The display type for opening an <see cref="ExplicitDestination"/>.
/// </summary>
public enum ExplicitDestinationType
public enum ExplicitDestinationType : byte
{
/// <summary>
/// Display the page with the given top left coordinates and