Exemplo n.º 1
0
            public async void ReturnsFalseWhenNoFileFound([Frozen] ITmNative native, TmsApi tms)
            {
                uint error;
                var  errorBuf = new byte[80];

                A.CallTo(() => native.TmcGetCfsHandle(A <int> ._))
                .Returns(new IntPtr(1));
                A.CallTo(() => native.CfsFileGet(new IntPtr(1), "", "", 0, IntPtr.Zero, out error, ref errorBuf, 0))
                .WithAnyArguments()
                .Returns(true);

                var result = await tms.DownloadFile(A.Dummy <string>(), A.Dummy <string>());

                result.Should().BeFalse();
            }