public void DeepClone_Works() { var sut = new QuotaOptions { Average = 10, Burst = 100, }; var clone = sut.DeepClone(); Assert.NotSame(sut, clone); Assert.Equal(sut.Average, clone.Average); Assert.Equal(sut.Burst, clone.Burst); }
public void DeepClone_Works() { // Arrange var sut = new QuotaOptions { Average = 10, Burst = 100, }; // Act var clone = sut.DeepClone(); // Assert clone.Should().NotBeSameAs(sut); clone.Average.Should().Be(sut.Average); clone.Burst.Should().Be(sut.Burst); }