コード例 #1
0
        public virtual void test_namedThreadFactory_prefix()
        {
            ThreadFactory threadFactory = Guavate.namedThreadFactory("ThreadMaker").build();

            assertEquals(threadFactory.newThread(() => doNothing()).Name, "ThreadMaker-0");
        }
コード例 #2
0
        public virtual void test_namedThreadFactory()
        {
            ThreadFactory threadFactory = Guavate.namedThreadFactory().build();

            assertEquals(threadFactory.newThread(() => doNothing()).Name, "GuavateTest-0");
        }