Пример #1
0
        public void prop_CancellationToken_set()
        {
            var expected = new CancellationToken();
            ThreadedObject obj = new DerivedThreadedObject
                                     {
                                         CancellationToken = expected
                                     };

            var actual = obj.CancellationToken;

            Assert.Equal(expected, actual);
        }
Пример #2
0
        public void prop_CancellationToken_set()
        {
            var            expected = new CancellationToken();
            ThreadedObject obj      = new DerivedThreadedObject
            {
                CancellationToken = expected
            };

            var actual = obj.CancellationToken;

            Assert.Equal(expected, actual);
        }