コード例 #1
0
        public void Should_Clone_ReadOnlyDictionary()
        {
            var values = new Dictionary <int, bool> {
                { 1, true }, { 2, false }, { 3, true }, { 4, false }, { 5, true }
            };
            var original = new ReadOnlyDictionary <int, bool>(values);
            var cloned   = original.Clone();

            Assert.IsNotNull(cloned);
        }