public virtual void TestFcCopy() { string ts = "some random text"; Path file1 = fileContextTestHelper.GetTestRootPath(fc, "file1"); Path file2 = fileContextTestHelper.GetTestRootPath(fc, "file2"); FileContextTestHelper.WriteFile(fc, file1, Runtime.GetBytesForString(ts)); Assert.True(fc.Util().Exists(file1)); fc.Util().Copy(file1, file2); // verify that newly copied file2 exists Assert.True("Failed to copy file2 ", fc.Util().Exists(file2)); // verify that file2 contains test string Assert.True("Copied files does not match ", Arrays.Equals(Runtime.GetBytesForString (ts), FileContextTestHelper.ReadFile(fc, file2, Runtime.GetBytesForString (ts).Length))); }