Ejemplo n.º 1
0
        public void TimeSlicedThreadSchedulerForLinuxImplementation()
        {
            // Arrange
            OSSpecificThreadScheduler ossts = new LinuxTS();
            ThreadScheduler           ts    = new TimeSlicedThreadScheduler(ossts);

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

            // Assert
            Assert.False(started);
        }
Ejemplo n.º 2
0
        public void TimeSlicedThreadSchedulerForWindowsImplementation()
        {
            // Arrange
            OSSpecificThreadScheduler ossts = new WindowsTS();
            ThreadScheduler           ts    = new TimeSlicedThreadScheduler(ossts);

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

            // Assert
            Assert.True(started);
        }