예제 #1
0
        public void BindContext2Test()
        {
            var bc = new BindContext(timeout: TimeSpan.FromSeconds(30), bindFlags: Ole32.BIND_FLAGS.BIND_MAYBOTHERUSER);

            Assert.That(bc.BindFlags, Is.EqualTo(Ole32.BIND_FLAGS.BIND_MAYBOTHERUSER));
            Assert.That(bc.Deadline, Is.EqualTo(TimeSpan.FromSeconds(30)));
            Assert.That(() => bc.Dispose(), Throws.Nothing);
        }
예제 #2
0
        public void BindContextTest()
        {
            var bc = new BindContext();

            Assert.That((int)bc.BindFlags, Is.Zero);
            Assert.That(bc.Deadline, Is.EqualTo(TimeSpan.Zero));
            Assert.That(() => bc.Dispose(), Throws.Nothing);
        }