Exemple #1
0
        public void ToString_NormalCase()
        {
            var param = new VkMethodParam {Name = "user_id", Type = ReturnType.Long};
            string result = param.ToString();

            result.ShouldEqual("long? userId = null");
        }
Exemple #2
0
        public void ToString_Mandatory()
        {
            var param = new VkMethodParam { Name = "user_id", Type = ReturnType.Long, IsMandatory = true};
            string result = param.ToString();

            result.ShouldEqual("long userId");
        }
Exemple #3
0
        public void ToString_Offset()
        {
            var param = new VkMethodParam { Name = "offset", Type = ReturnType.Long };

            string result = param.ToString();

            result.ShouldEqual("int? offset = null");
        }
Exemple #4
0
        public void ToString_CountDigitMandatory()
        {
            var param = new VkMethodParam { Name = "count", Type = ReturnType.Long, IsMandatory = true };

            string result = param.ToString();

            result.ShouldEqual("int count");
        }