File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change 1111using NUnit . Framework ;
1212#endif
1313
14+ #pragma warning disable CS0618 // Disable obsolete Warnings
15+ #pragma warning disable CS0612 // Disable obsolete Warnings
16+
1417namespace SQLite . Tests
1518{
1619 [ AttributeUsage ( AttributeTargets . Property , AllowMultiple = false , Inherited = true ) ]
@@ -40,6 +43,9 @@ public class OuterTestSetter
4043
4144 private string Private { get ; set ; }
4245 public static string StaticProperty { get ; set ; }
46+
47+ [ Obsolete ]
48+ public string Obsolete { get ; set ; }
4349 }
4450
4551 public class OuterTestDb : SQLiteConnection
@@ -194,6 +200,17 @@ public void SqliteInitializer_OuterTestSetter_ZRenamedA()
194200 }
195201 }
196202
203+ [ Test ]
204+ public void SqliteInitializer_OuterTestSetter_Obsolete_Property ( )
205+ {
206+ if ( SQLite . FastColumnSetter . customSetter . TryGetValue ( ( typeof ( OuterTestSetter ) , nameof ( OuterTestSetter . Obsolete ) ) , out var setter ) ) {
207+ Assert . IsTrue ( true , "Should be registered" ) ;
208+ }
209+ else {
210+ Assert . Fail ( "Should be registered" ) ;
211+ }
212+ }
213+
197214 [ Test ]
198215 public void SqliteInitializer_OuterTestSetter_NotWritable_NotRegistered ( )
199216 {
You can’t perform that action at this time.
0 commit comments