@@ -45,6 +45,7 @@ - (void) testDeserialize {
4545 XCTAssertEqual (buo.contentMetadata .ratingAverage , 5 );
4646 XCTAssertEqual (buo.contentMetadata .ratingCount , 5 );
4747 XCTAssertEqual (buo.contentMetadata .ratingMax , 7 );
48+ XCTAssertEqual (buo.contentMetadata .rating , 6 );
4849 XCTAssertEqualObjects (buo.contentMetadata .addressStreet , @" Street_name1" );
4950 XCTAssertEqualObjects (buo.contentMetadata .addressCity , @" city1" );
5051 XCTAssertEqualObjects (buo.contentMetadata .addressRegion , @" Region1" );
@@ -107,6 +108,7 @@ - (void) testSerialize {
107108 buo.contentMetadata .ratingAverage = 5 ;
108109 buo.contentMetadata .ratingCount = 5 ;
109110 buo.contentMetadata .ratingMax = 7 ;
111+ buo.contentMetadata .rating = 6 ;
110112 buo.contentMetadata .addressStreet = @" Street_name1" ;
111113 buo.contentMetadata .addressCity = @" city1" ;
112114 buo.contentMetadata .addressRegion = @" Region1" ;
@@ -125,11 +127,12 @@ - (void) testSerialize {
125127 buo.keywords = @[@" My_Keyword1" , @" My_Keyword2" ];
126128 buo.contentDescription = @" my_product_description1" ;
127129 buo.imageUrl = @" https://test_img_url" ;
128- buo.expirationDate = [NSDate dateWithTimeIntervalSince1970: (double )212123232544.0 /1000.0 ];
130+ buo.expirationDate =
131+ [NSDate dateWithTimeIntervalSince1970: (double )212123232544.0 /1000.0 ];
129132 buo.publiclyIndex = NO ;
130133 buo.locallyIndex = YES ;
131- buo.creationDate = [ NSDate dateWithTimeIntervalSince1970: ( double ) 1501869445321.0 / 1000.0 ];
132-
134+ buo.creationDate =
135+ [ NSDate dateWithTimeIntervalSince1970: ( double ) 1501869445321.0 / 1000.0 ];
133136 NSDictionary *buoDictionary = buo.dictionary ;
134137
135138 // Load the JSON:
0 commit comments