예제 #1
0
 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);
 }
예제 #2
0
      public void TestFileObjectCopyConstructor()
      {
         FileObject f = new FileObject(SetupMock());

         AssertFile(f);
      }