Пример #1
0
        public void GetPetByIdWithByteArrayTest()
        {
            // TODO: add unit test for the method 'GetPetByIdWithByteArray'
            long?petId = null;  // TODO: replace null with proper value

            var response = instance.GetPetByIdWithByteArray(petId);

            Assert.IsInstanceOf <byte[]> (response, "response is byte[]");
        }
Пример #2
0
        public void TestGetPetByIdWithByteArray()
        {
            // set timeout to 10 seconds
            Configuration c1 = new Configuration(timeout: 10000);

            PetApi petApi = new PetApi(c1);

            byte[] response = petApi.GetPetByIdWithByteArray(petId);
            Assert.IsInstanceOf <byte[]> (response, "Response is byte array");
        }