예제 #1
0
        public void returns_an_enumerable_of_users()
        {
            IJsonService jsonService = Substitute.For <IJsonService>();

            jsonService.GetUsers().Returns(new List <User>());

            jsonService.GetUsers().ShouldBeAssignableTo <IEnumerable <User> >();
        }