예제 #1
0
 static void AssertStorageSystem (StorageSystem storageSystem, StorageSystemOptions options)
 {
     AssertContainer (storageSystem, options);
     Assert.AreEqual (storageSystem.StorageUsed, options.StorageUsed);
     Assert.AreEqual (storageSystem.StorageTotal, options.StorageTotal);
     Assert.AreEqual (storageSystem.StorageFree, options.StorageFree);
     Assert.AreEqual (storageSystem.StorageMedium, options.StorageMedium);
     Assert.AreEqual (storageSystem.StorageMaxPartition, options.StorageMaxPartition);
 }
예제 #2
0
 public void StorageSystemInstantiation ()
 {
     var options = new StorageSystemOptions ();
     SetStorageSystemOptions (options);
     var storage_system = new StorageSystem ("-1", "-1", options);
     AssertStorageSystem (storage_system, options);
     AssertStorageSystem (storage_system, storage_system.GetOptions ());
 }