Skip to content

Commit 5fef750

Browse files
committed
Test for null settings sent to client options
1 parent d0e0904 commit 5fef750

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/SendGrid.Tests/Reliability/ReliabilitySettingsTests.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,14 @@ public void ShouldPassValidValuesFromDefaultConstruct()
101101
Assert.Equal(TimeSpan.Zero, defaultSettings.DeltaBackOff);
102102
Assert.Equal(0, defaultSettings.MaximumNumberOfRetries);
103103
}
104+
105+
[Fact]
106+
public void ShouldNotAllowNullInstanceOnSendGridClientOptions()
107+
{
108+
var options = new SendGridClientOptions();
109+
110+
Assert.Throws<ArgumentNullException>(() => options.ReliabilitySettings = null);
111+
}
104112
}
105113
}
106114

0 commit comments

Comments
 (0)