Ejemplo n.º 1
0
        public void Should_ParseFileLineToPassword_When_ValidLine(string line, string expectedResult)
        {
            var sut = new PasswordRepositoryTestWrapper();

            var passwordEntry = sut.PasswordEntryFromFileLine(line);

            Assert.That(passwordEntry.Password == expectedResult);
        }
Ejemplo n.º 2
0
            public void Should_ReturnFalse_When_InValidPassword(string passwordEntryAsString, bool expectedValid)
            {
                var passwordRepository = new PasswordRepositoryTestWrapper();
                var passwordEntry      = passwordRepository.PasswordEntryFromFileLine(passwordEntryAsString);

                var sut         = new PasswordReportService();
                var actualValid = sut.ValidatePassword(passwordEntry);

                Assert.That(actualValid == expectedValid);
            }