Skip to content

Commit 85b1811

Browse files
Fix possible null reference in test
1 parent 6f63318 commit 85b1811

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

output/csharp/src/Seam.Test/Client/SeamTests.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,11 +158,13 @@ public void TestUnknownEnumValue()
158158
var device = JsonConvert.DeserializeObject<Device>(json, settings);
159159

160160
// Unknown values should be mapped to first enum value (Unrecognized = 0)
161+
Assert.NotNull(device);
161162
Assert.Equal(Device.DeviceTypeEnum.Unrecognized, device.DeviceType);
162163
Assert.Equal(
163164
Device.CapabilitiesSupportedEnum.Unrecognized,
164165
device.CapabilitiesSupported[0]
165166
);
167+
Assert.NotNull(device.Properties.AvailableFanModeSettings);
166168
Assert.Equal(
167169
DeviceProperties.AvailableFanModeSettingsEnum.Unrecognized,
168170
device.Properties.AvailableFanModeSettings[0]

0 commit comments

Comments
 (0)