Esempio n. 1
0
        [Fact]// tells xUnit its a test
        public void EmptyUserList()
        {
            //Arrange - preper whats needed to do the test
            UserLoginManager manager = new UserLoginManager(new Dictionary <string, string>());
            int expected             = 0;

            //Act - run method that we are testing
            int actual = manager.UserCount();

            //Assert - did it do what its supposed to do
            Assert.Equal(expected, actual);
        }
Esempio n. 2
0
        [Fact]// tells xUnit its a test
        public void DefualtAmountOfUsers()
        {
            //Arrange - preper whats needed to do the test
            UserLoginManager manager = new UserLoginManager();
            int expected             = 2;

            //Act - run method that we are testing
            int actual = manager.UserCount();

            //Assert - did it do what its supposed to do
            Assert.Equal(expected, actual);
        }