Ejemplo n.º 1
0
        public void SetIfNotNullTest()
        {
            var dict = new Dictionary <string, string>();

            dict.SetIfNotNull("a", "b");

            dict.Keys.ShouldNumber(1);
        }
Ejemplo n.º 2
0
        public void SetIfNotNullTestSecondNull()
        {
            var dict = new Dictionary <string, string>();

            dict.SetIfNotNull("a", null);

            dict.Keys.ShouldNumber(0);
        }
Ejemplo n.º 3
0
        public void SetIfNotNullTestFirstNull()
        {
            var dict = new Dictionary <string, int>();

            dict.SetIfNotNull(null, 1);

            dict.Keys.ShouldNumber(0);
        }
        public void SetIfNotNullTestSecondNull()
        {
            var dict = new Dictionary<string, string>();
            dict.SetIfNotNull("a", null);

            dict.Keys.ShouldNumber(0);
        }
        public void SetIfNotNullTestFirstNull()
        {
            var dict = new Dictionary<string, int>();
            dict.SetIfNotNull(null, 1);

            dict.Keys.ShouldNumber(0);
        }
        public void SetIfNotNullTest()
        {
            var dict = new Dictionary<string, string>();
            dict.SetIfNotNull("a", "b");

            dict.Keys.ShouldNumber(1);
        }