void AssertFile(FileObject file) { Assert.AreEqual(id, file.Id); Assert.IsTrue(file.IsActive); Assert.AreEqual(FILE_NAME, file.FileName); Assert.AreEqual(NEW_NAME, file.NewName); Assert.AreEqual(UPLOAD_DATE, file.UploadDate); Assert.AreEqual(DESCRIPTION, file.Description); }
public void TestFileObjectCopyConstructor() { FileObject f = new FileObject(SetupMock()); AssertFile(f); }