public void TestOperation()
        {
            DummyHttpServer instance = new DummyHttpServer();

            CodeGenerationInvokerStrategy strategy = new CodeGenerationInvokerStrategy();
            MDynamicSupport dynamic = strategy.Create(instance);

            Assert( !instance.Started );
            dynamic.Invoke("Start", null, null);
            Assert( instance.Started );
        }
        public void TestInfo()
        {
            Object instance = new DummyHttpServer();

            CodeGenerationInvokerStrategy strategy = new CodeGenerationInvokerStrategy();
            MDynamicSupport dynamic = strategy.Create(instance);
            AssertNotNull(dynamic);
            AssertNotNull(dynamic.Info);
            AssertEquals( 3, dynamic.Info.Operations.Count );
            AssertEquals( 1, dynamic.Info.Attributes.Count );
        }