@@ -72,14 +72,6 @@ public async Task SimpleNoChangeTest()
7272 diff . Should ( ) . BeNull ( ) ;
7373 }
7474
75- [ Fact ( Skip = "Curently empty diffs are sendt to frontend, so the result here is an empty dictionary" ) ]
76- public async Task SimpleNoChangeTestTrueReturn ( )
77- {
78- var data = new TestModel ( ) ;
79- var diff = await DoTest ( data , ( model ) => true ) ;
80- diff . Should ( ) . BeNull ( ) ;
81- }
82-
8375 [ Fact ]
8476 public async Task InitializingPropertiesLeadsToNoDiff ( )
8577 {
@@ -109,9 +101,9 @@ public async Task InitializingNonNullablePropertiesCreatesDiff()
109101 // Not sure if RecursiveTest should be null here, but apparently it does not hurt
110102 diff . Should ( ) . Equal ( new Dictionary < string , object ? > ( )
111103 {
112- { "RecursiveTest.IntegerTest" , 0 } ,
113- { "RecursiveTest.DecimalTest" , 0M } ,
114- { "RecursiveTest" , null } ,
104+ { "RecursiveTest.IntegerTest" , 0 } ,
105+ { "RecursiveTest.DecimalTest" , 0M } ,
106+ { "RecursiveTest" , null } ,
115107 } ) ;
116108 }
117109
@@ -164,26 +156,7 @@ public async Task TestSystemTextJsonAnnotation()
164156
165157 diff . Should ( ) . Equal ( new Dictionary < string , object ? >
166158 {
167- { "jsonPropertyName" , "New Value" } ,
168- } ) ;
169- }
170-
171- [ Fact ( Skip = "System.Text.Json annotation is required" ) ]
172- public async Task NewtonsoftJsonAnnotation ( )
173- {
174- var data = new TestModel ( )
175- {
176- NewtonsoftAttributeWorks = "Original Value" ,
177- } ;
178- var diff = await DoTest ( data , ( model ) =>
179- {
180- model . NewtonsoftAttributeWorks = "New Value" ;
181- return true ;
182- } ) ;
183-
184- diff . Should ( ) . Equal ( new Dictionary < string , object ? >
185- {
186- { "newtonsoftString" , "New Value" } ,
159+ { "jsonPropertyName" , "New Value" } ,
187160 } ) ;
188161 }
189162
0 commit comments