Example #1
0
        public void UserRolesServiceTest_FindUsersByRole_WhenWriter_AlwaysReturnsNully()
        {
            var svc = new UserRolesService();

            var actual = svc.FindUsersByRole("writer");

            Assert.Null(actual); // No writers allowed
        }
Example #2
0
        public void UserRolesServiceTest_FindUsersByRole_Always_Iterable()
        {
            var svc = new UserRolesService();

            var actual = svc.FindUsersByRole("writer");

            // oops, I cant iterate over null!
            Assert.IsAssignableFrom <IEnumerable <string> >(actual);
        }