Exemple #1
0
        public void Scanning_ScanInOutBelowZero()
        {
            // Test negatives are handled.
            ModuleScanning.setScannedIn(-2);
            ModuleScanning.setScannedOut(-400);

            Assert.IsTrue(ModuleScanning.getScannedIn() == 0 && ModuleScanning.getScannedOut() == 0);
        }
Exemple #2
0
        public void Scanning_ScanInOutTest()
        {
            // Simple test.
            ModuleScanning.setScannedIn(100);
            ModuleScanning.setScannedOut(100);

            Assert.IsTrue(ModuleScanning.getScannedIn() == 100 && ModuleScanning.getScannedOut() == 100);
        }