48 lines
1.8 KiB
C#
48 lines
1.8 KiB
C#
/*
|
|
This file is part of the TSpdf (R) project.
|
|
Copyright (c) 1987-2023 TSpdf
|
|
Authors: TSpdf Software.
|
|
|
|
This program is offered under a commercial and under the AGPL license.
|
|
For commercial licensing, contact us at https://TSpdfpdf.com/sales. For AGPL licensing, see below.
|
|
|
|
AGPL licensing:
|
|
This program is free software: you can redistribute it and/or modify
|
|
it under the terms of the GNU Affero General Public License as published by
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
(at your option) any later version.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU Affero General Public License for more details.
|
|
|
|
You should have received a copy of the GNU Affero General Public License
|
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
*/
|
|
using TSpdf.Kernel.Geom;
|
|
using TSpdf.Kernel.Pdf.Annot;
|
|
using TSpdf.Layout.Element;
|
|
using TSpdf.Test;
|
|
using TSpdf.Test.Attributes;
|
|
|
|
namespace TSpdf.Layout.Renderer {
|
|
[NUnit.Framework.Category("UnitTest")]
|
|
public class LinkRendererUnitTest : ExtendedTSpdfTest {
|
|
[NUnit.Framework.Test]
|
|
[LogMessage(TSpdf.IO.Logs.IoLogMessageConstant.GET_NEXT_RENDERER_SHOULD_BE_OVERRIDDEN)]
|
|
public virtual void GetNextRendererShouldBeOverriddenTest() {
|
|
LinkRenderer linkRenderer = new _LinkRenderer_47(new Link("test", new PdfLinkAnnotation(new Rectangle(0, 0
|
|
))));
|
|
// Nothing is overridden
|
|
NUnit.Framework.Assert.AreEqual(typeof(LinkRenderer), linkRenderer.GetNextRenderer().GetType());
|
|
}
|
|
|
|
private sealed class _LinkRenderer_47 : LinkRenderer {
|
|
public _LinkRenderer_47(Link baseArg1)
|
|
: base(baseArg1) {
|
|
}
|
|
}
|
|
}
|
|
}
|