Beispiel #1
0
        public void NonRequiredParameterHasDefaultValue()
        {
            var method = TypeAsserts.HasPublicInstanceMethod(typeof(StringClient), "PutNull");

            var parameter = method.GetParameters().Single(p => p.Name == "stringBody");

            Assert.True(parameter.HasDefaultValue);
        }
Beispiel #2
0
        public void ParametersAreRenamed()
        {
            var method = TypeAsserts.HasPublicInstanceMethod(typeof(ServiceClient), "RenamedOperationAsync");

            // TODO: Add more tests here
            TypeAsserts.HasParameter(method, "renamedBodyParameter");
            TypeAsserts.HasParameter(method, "renamedPathParameter");
            TypeAsserts.HasParameter(method, "renamedQueryParameter");
        }