Пример #1
0
        public void PreemtiveThreadSchedulerForWindowsImplementation()
        {
            // Arrange
            OSSpecificThreadScheduler ossts = new WindowsTS();
            ThreadScheduler           ts    = new PreemtiveThreadScheduler(ossts);

            // Act
            var started = ts.Start();

            // Assert
            Assert.True(started);
        }
Пример #2
0
        public void PreemtiveThreadSchedulerForLinuxImplementation()
        {
            // Arrange
            OSSpecificThreadScheduler ossts = new LinuxTS();
            ThreadScheduler           ts    = new PreemtiveThreadScheduler(ossts);

            // Act
            var started = ts.Start();

            // Assert
            Assert.False(started);
        }