Example #1
0
        public void ShimFileCreate_NoArguments_ReturnsAShim()
        {
            Shim result = ClientTestUtilities.ShimFileCreate();

            PoseContext.Isolate(() =>
            {
                Assert.IsType <Shim>(result);
            });
        }
Example #2
0
        public void ShimGetAsync_NoArguments_ReturnsAnExpectedType()
        {
            var result = ClientTestUtilities.ShimGetAsync <ListPhotosRequest, List <Photo> >();

            PoseContext.Isolate(() =>
            {
                Assert.IsType <List <Photo> >(result);
            });
        }
Example #3
0
        public void Deserialize_String_ReturnsAnExpectedObject()
        {
            var result = ClientTestUtilities.Deserialize <Photo>(ClientTestUtilities.RawPhoto);

            PoseContext.Isolate(() =>
            {
                Assert.IsType <Photo>(result);
            });
        }
Example #4
0
        public void ShimGetByteArrayAsync_Buffer_ReturnsAShim()
        {
            var  buffer = new byte[] { 1, 2 };
            Shim result = ClientTestUtilities.ShimGetByteArrayAsync(buffer);

            PoseContext.Isolate(() =>
            {
                Assert.IsType <Shim>(result);
            });
        }
Example #5
0
 static void Action() => ClientTestUtilities.MockHttpResponse <Request, Photo>();