[Fact]// tells xUnit its a test public void OnlySymbolsPassword() { //Arrange - preper whats needed to do the test UserLoginManager manager = new UserLoginManager(); string onlySymbols = "!@#$"; bool result = manager.ValidatePassword(onlySymbols); //Assert - did it do what its supposed to do Assert.False(result); }
[Fact]// tells xUnit its a test public void OnlyDigietsPassword() { //Arrange - preper whats needed to do the test UserLoginManager manager = new UserLoginManager(); string onlyDigits = "123"; //Act - run method that we are testing bool result = manager.ValidatePassword(onlyDigits); //Assert - did it do what its supposed to do Assert.False(result); }
[Fact]// tells xUnit its a test public void ValidPassword() { //Arrange - preper whats needed to do the test UserLoginManager manager = new UserLoginManager(); string goodPassword = "******"; //Act - run method that we are testing bool result = manager.ValidatePassword(goodPassword); //Assert - did it do what its supposed to do Assert.True(result); }