Example #1
0
        public void WhenAddMemberItShouldBeThere()
        {
            // Assume
            var    intershipService = new InternshipService();
            Intern intern           = new Intern();

            // Act
            intern.Name = "Marko";
            intershipService.AddMember(intern);

            // Assert
            Assert.Equal(4, intershipService.GetMembers().Count);
            Assert.Contains("Marko", intershipService.GetMembers().Select(member => member.Name));
        }
Example #2
0
        public void InitiallyContainsThreeMembers()
        {
            // Assume
            var intershipService = new InternshipService();

            // Act

            // Assert
            Assert.Equal(3, intershipService.GetMembers().Count);
        }