Exemplo n.º 1
0
        public void CastOneDictToAnotherTest()
        {
            // from int-int to string-long
            var source = new Dictionary <int, int> {
                { 1, 1 }, { 2, 2 }, { 3, 3 }
            }.AsReadOnlyDictionary();
            var target = DictConv.Cast <int, int, int, dynamic>(source);

            target.ShouldNotBeNull();
            target.Count.ShouldBe(3);
        }