1+ /*
2+ This file is part of the iText (R) project.
3+ Copyright (c) 1998-2022 iText Group NV
4+ Authors: iText Software.
5+
6+ This program is offered under a commercial and under the AGPL license.
7+ For commercial licensing, contact us at https://itextpdf.com/sales. For AGPL licensing, see below.
8+
9+ AGPL licensing:
10+ This program is free software: you can redistribute it and/or modify
11+ it under the terms of the GNU Affero General Public License as published by
12+ the Free Software Foundation, either version 3 of the License, or
13+ (at your option) any later version.
14+
15+ This program is distributed in the hope that it will be useful,
16+ but WITHOUT ANY WARRANTY; without even the implied warranty of
17+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18+ GNU Affero General Public License for more details.
19+
20+ You should have received a copy of the GNU Affero General Public License
21+ along with this program. If not, see <https://www.gnu.org/licenses/>.
22+ */
123using System ;
224using System . Threading ;
325using iText . Commons . Actions . Contexts ;
@@ -8,8 +30,8 @@ namespace iText.Forms.Fields {
830 public class FormsMetaInfoStaticContainerTest : ExtendedITextTest {
931 [ NUnit . Framework . Test ]
1032 public virtual void UseMetaInfoDuringTheActionOneThreadTest ( ) {
11- MetaInfoContainer metaInfo1 = new MetaInfoContainer ( new _IMetaInfo_16 ( ) ) ;
12- MetaInfoContainer metaInfo2 = new MetaInfoContainer ( new _IMetaInfo_17 ( ) ) ;
33+ MetaInfoContainer metaInfo1 = new MetaInfoContainer ( new _IMetaInfo_38 ( ) ) ;
34+ MetaInfoContainer metaInfo2 = new MetaInfoContainer ( new _IMetaInfo_39 ( ) ) ;
1335 FormsMetaInfoStaticContainer . UseMetaInfoDuringTheAction ( metaInfo1 , ( ) => {
1436 NUnit . Framework . Assert . AreSame ( metaInfo1 , FormsMetaInfoStaticContainer . GetMetaInfoForLayout ( ) ) ;
1537 FormsMetaInfoStaticContainer . UseMetaInfoDuringTheAction ( metaInfo2 , ( ) => NUnit . Framework . Assert . AreSame ( metaInfo2
@@ -20,13 +42,13 @@ public virtual void UseMetaInfoDuringTheActionOneThreadTest() {
2042 NUnit . Framework . Assert . IsNull ( FormsMetaInfoStaticContainer . GetMetaInfoForLayout ( ) ) ;
2143 }
2244
23- private sealed class _IMetaInfo_16 : IMetaInfo {
24- public _IMetaInfo_16 ( ) {
45+ private sealed class _IMetaInfo_38 : IMetaInfo {
46+ public _IMetaInfo_38 ( ) {
2547 }
2648 }
2749
28- private sealed class _IMetaInfo_17 : IMetaInfo {
29- public _IMetaInfo_17 ( ) {
50+ private sealed class _IMetaInfo_39 : IMetaInfo {
51+ public _IMetaInfo_39 ( ) {
3052 }
3153 }
3254
@@ -56,7 +78,7 @@ public MetaInfoCheckClass(FormsMetaInfoStaticContainerTest.MetaInfoCheckClass me
5678 }
5779
5880 public virtual void CheckMetaInfo ( ) {
59- MetaInfoContainer metaInfo = new MetaInfoContainer ( new _IMetaInfo_56 ( ) ) ;
81+ MetaInfoContainer metaInfo = new MetaInfoContainer ( new _IMetaInfo_78 ( ) ) ;
6082 FormsMetaInfoStaticContainer . UseMetaInfoDuringTheAction ( metaInfo , ( ) => {
6183 if ( metaInfoCheckClass != null ) {
6284 Thread thread = new Thread ( ( ) => metaInfoCheckClass . CheckMetaInfo ( ) ) ;
@@ -74,8 +96,8 @@ public virtual void CheckMetaInfo() {
7496 checkFailed |= FormsMetaInfoStaticContainer . GetMetaInfoForLayout ( ) != null ;
7597 }
7698
77- private sealed class _IMetaInfo_56 : IMetaInfo {
78- public _IMetaInfo_56 ( ) {
99+ private sealed class _IMetaInfo_78 : IMetaInfo {
100+ public _IMetaInfo_78 ( ) {
79101 }
80102 }
81103
0 commit comments