public void NegativeTestCopy() { var dataAction = new DataAction(_dataPlace); string copyPath = "Q:\\UNBELIEVABLE\\PATH"; Assert.Catch <IOException>(() => dataAction.CopyTo(copyPath)); }
public void PositiveTestCopy() { var dataAction = new DataAction(_dataPlace); string copyPath = _testedData.DirDestination + "\\TestCopy1"; dataAction.CopyTo(copyPath); DirectoryIdentity sourceIdentity = new DirectoryIdentity(_dataPlace.Path); DirectoryIdentity destinationIdentity = new DirectoryIdentity(copyPath); Assert.AreEqual(sourceIdentity, destinationIdentity); }