System.Diagnostics.Tests.ProcessThreadTests.TestStartTimeProperty_OSX C# (CSharp) Method

TestStartTimeProperty_OSX() private method

private TestStartTimeProperty_OSX ( ) : void
return void
        public void TestStartTimeProperty_OSX()
        {
            using (Process p = Process.GetCurrentProcess())
            {
                ProcessThreadCollection threads = p.Threads;
                Assert.NotNull(threads);
                Assert.NotEmpty(threads);

                ProcessThread thread = threads[0];
                Assert.NotNull(thread);

                Assert.Throws<PlatformNotSupportedException>(() => thread.StartTime);
            }
        }