Esempio n. 1
0
        public void CanHandleContextTest()
        {
            Expect.Call(this.context.IsConstructor).Return(true);
            Expect.Call(this.context.IsConstructor).Return(false);
            mocks.ReplayAll();

            var expected = true;
            var actual   = ConstructorBuilder.CanHandleContext(this.context);

            Assert.AreEqual(expected, actual);

            expected = false;
            actual   = ConstructorBuilder.CanHandleContext(this.context);
            Assert.AreEqual(expected, actual);

            mocks.VerifyAll();
        }