Beispiel #1
0
        void of_kind()
        {
            it["looks at inheritance heirarchy for strongly typed objects"] = () =>
            {
                "foobar".IsOfKind <string>().should_be_true();

                "foobar".IsOfKind <object>().should_be_true();
            };

            it["looks at inheritance heirarchy for gemini's"] = () =>
            {
                dynamic blog = new BlogEntry(new { });

                ((bool)blog.IsOfKind <BlogEntry>()).should_be_true();

                ((bool)blog.IsOfKind <Gemini>()).should_be_true();
            };

            it["includes modules that are mixed in for a gemini instance"] = () =>
            {
                dynamic blog = new BlogEntry(new { });

                blog.Extend <Changes>();

                ((bool)blog.IsOfKind <Changes>()).should_be_true();
            };
        }