예제 #1
0
        public void Returns_the_object_passed_in()
        {
            var fruit = new Fruit();
            fruit.CastTo<Fruit>().ShouldBeSameAs(fruit);

            var apple = new Apple();
            apple.CastTo<Fruit>().ShouldBeSameAs(apple);
        }