Ejemplo n.º 1
0
        /// <exception cref="System.Exception"/>
        public virtual void TestFsStatus()
        {
            FsStatus fsStatus = fs.GetStatus();

            NUnit.Framework.Assert.IsNotNull(fsStatus);
            //used, free and capacity are non-negative longs
            Assert.True(fsStatus.GetUsed() >= 0);
            Assert.True(fsStatus.GetRemaining() >= 0);
            Assert.True(fsStatus.GetCapacity() >= 0);
        }
Ejemplo n.º 2
0
        public virtual void TestFileStatus()
        {
            string fileName = "file1";
            Path   path2    = fc2.MakeQualified(new Path(Base, fileName));

            // Create a file on fc2's file system using fc1
            FileContextTestHelper.CreateFile(fc1, path2);
            FsStatus fc2Status = fc2.GetFsStatus(path2);

            // FsStatus , used, free and capacity are non-negative longs
            NUnit.Framework.Assert.IsNotNull(fc2Status);
            Assert.True(fc2Status.GetCapacity() > 0);
            Assert.True(fc2Status.GetRemaining() > 0);
            Assert.True(fc2Status.GetUsed() > 0);
        }