Beispiel #1
0
 public void TestParameterOrder()
 {
     var method = new BaseMethodTestImpl("count", SimpleCountMethod);
     Assert.IsNotNull(method.ParameterOrder);
     Assert.AreEqual(2, method.ParameterOrder.Count());
     Assert.AreEqual("url", method.ParameterOrder.First());
     Assert.AreEqual("hl", method.ParameterOrder.Last());
 }
Beispiel #2
0
 public void TestSimpleProperties()
 {
     var method = new BaseMethodTestImpl("count", SimpleCountMethod);
     Assert.AreEqual("ResponseTypeTestString", method.ResponseType);
     Assert.AreEqual("RequestTypeTestString", method.RequestType);
     Assert.AreEqual("count", method.Name);
     Assert.AreEqual("GET", method.HttpMethod);
     Assert.AreEqual(2, method.Parameters.Count);
 }
        public void TestParameterOrder()
        {
            var method = new BaseMethodTestImpl("count", SimpleCountMethod);

            Assert.IsNotNull(method.ParameterOrder);
            Assert.AreEqual(2, method.ParameterOrder.Count());
            Assert.AreEqual("url", method.ParameterOrder.First());
            Assert.AreEqual("hl", method.ParameterOrder.Last());
        }
        public void TestSimpleProperties()
        {
            var method = new BaseMethodTestImpl("count", SimpleCountMethod);

            Assert.AreEqual("ResponseTypeTestString", method.ResponseType);
            Assert.AreEqual("RequestTypeTestString", method.RequestType);
            Assert.AreEqual("count", method.Name);
            Assert.AreEqual("GET", method.HttpMethod);
            Assert.AreEqual(2, method.Parameters.Count);
        }