public void CloneProducesACopy() { var options = new SenderOptions { PartitionId = "some_partition_id_123", Retry = new ExponentialRetry(TimeSpan.FromSeconds(4), TimeSpan.FromSeconds(5), 6), Timeout = TimeSpan.FromMinutes(65) }; var clone = options.Clone(); Assert.That(clone, Is.Not.Null, "The clone should not be null."); Assert.That(clone.PartitionId, Is.EqualTo(options.PartitionId), "The partition identifier of the clone should match."); Assert.That(clone.Timeout, Is.EqualTo(options.Timeout), "The timeout of the clone should match."); Assert.That(clone.Retry, Is.EqualTo(options.Retry), "The retry of the clone should be considered equal."); Assert.That(clone.Retry, Is.Not.SameAs(options.Retry), "The retry of the clone should be a copy, not the same instance."); }