Ejemplo n.º 1
0
        public void TestingRAM()
        {
            var ram = GC.GetTotalMemory(false);

            Assert.Greater(ram, 1000, "RAM is less than 1000 bytes");
            if (ctaTestCase != null)
            {
                ctaTestCase.AddTestData("TotalMemory", ram.ToString());
                ctaTestCase.AddTestData("Random value", new Random().NextDouble().ToString());
            }
        }
Ejemplo n.º 2
0
        public void TestingDriveFreeSpace()
        {
            DriveInfo drive = DriveInfo.GetDrives().First(di => di.Name.StartsWith("C", StringComparison.OrdinalIgnoreCase));

            Assert.IsTrue(drive.IsReady, "Drive is not ready");
            Assert.Greater(drive.TotalFreeSpace, 1000, "Drive has less than 1000 bytes free");
            if (ctaTestCase != null)
            {
                ctaTestCase.AddTestData("TotalFreeSpace", drive.TotalFreeSpace.ToString());
            }
        }