Skip to content

Commit

Permalink
Adjust test MapsAdditionalDataPropertiesToBackingStore
Browse files Browse the repository at this point in the history
  • Loading branch information
dbirler committed Apr 19, 2024
1 parent 2d2b523 commit 55806c8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ public void MapsAdditionalDataPropertiesToBackingStore()
property.Kind = CodePropertyKind.AdditionalData;
writer.Write(property);
var result = tw.ToString();
Assert.Contains("get { return BackingStore?.Get<SomeCustomClass>(\"propertyName\"); }", result);
Assert.Contains("set { BackingStore?.Set(\"propertyName\", value);", result);
Assert.Contains("get { return BackingStore.Get<SomeCustomClass>(\"propertyName\") ?? throw new InvalidOperationException(\"AdditionalData can not be null\"); }", result);
Assert.Contains("set { BackingStore.Set(\"propertyName\", value);", result);
}
[Fact]
public void WritesSerializationAttribute()
Expand Down

0 comments on commit 55806c8

Please sign in to comment.