Example #1
0
        public void GetReturnBlock_SimpleType()
        {
            var    vm     = new VkMethodViewModel(_defaultMethodInfo);
            string result = vm.GetReturnBlock(ReturnType.Bool);

            result.ShouldEqual("return response;");
        }
Example #2
0
        public void GetReturnBlock_Collection()
        {
            var    vm     = new VkMethodViewModel(_defaultMethodInfo);
            string result = vm.GetReturnBlock(ReturnType.Collection);

            result.ShouldEqual("return response.ToReadOnlyCollectionOf<>(x => x);");
        }