CaptureScreenshot function does not create the screenshot file immediately, i.e. ScreenShotTest.png does not exist at the moment you call AddFile. Try the example code, which does the same thing but should work properly in this case.
P.S. FYI, NativeShare has its own dedicated forum topic , as well