public void Class_Upload() { var upload = new TestMain(); var uploadexpected = "ture"; string fileName = "test.txt"; string sourcePath = @"C:\test1"; string targetPath = @"C:\test2"; var uploadfunction = upload.Uploadmethod(fileName, sourcePath, targetPath); Assert.AreEqual(uploadexpected, uploadexpected); }