ZeroInstall.Store.ConfigTest.TestClone C# (CSharp) Method

TestClone() private method

private TestClone ( ) : void
return void
        public void TestClone()
        {
            var config1 = CreateTestConfig();
            var config2 = config1.Clone();

            // Ensure data stayed the same
            config2.Should().Be(config1, because: "Cloned objects should be equal.");
            config2.GetHashCode().Should().Be(config1.GetHashCode(), because: "Cloned objects' hashes should be equal.");
            config2.Should().NotBeSameAs(config1, because: "Cloning should not return the same reference.");
        }