public void ConcatToDictionarySafeTestCase2()
        {
            var first = new Dictionary<Int32, Int32>();
            var second = new Dictionary<Int32, Int32>();

            var actual = first.ConcatToDictionarySafe( second );
            Assert.AreEqual( 0, actual.Count );
        }
        public void ConcatToDictionarySafeTestCase1()
        {
            var first = new Dictionary<Int32, Int32>
            {
                { 0, 1 },
                { 1, 2 }
            };
            var second = new Dictionary<Int32, Int32>();

            var actual = first.ConcatToDictionarySafe( second );
            Assert.AreEqual( 2, actual.Count );
            Assert.AreEqual( 1, actual.Count( x => x.Key == 0 && x.Value == 1 ) );
            Assert.AreEqual( 1, actual.Count( x => x.Key == 1 && x.Value == 2 ) );
        }
        public void ConcatToDictionarySafeTestCaseNullCheck()
        {
            var first = new Dictionary<Int32, Int32>
            {
                { 0, 1 },
                { 1, 2 }
            };
            Dictionary<Int32, Int32> second = null;

            Action test = () => first.ConcatToDictionarySafe( second );

            test.ShouldThrow<ArgumentNullException>();
        }