Пример #1
0
        public void Policy2_GivenInValidPassword_IndicatesNotValid(params string[] passordInfoList)
        {
            // Arrange
            var sut = new Day2Engine();
            int result, ignored;

            // Act
            sut.Execute(passordInfoList, out ignored, out result);

            // Assert
            result.Should().Be(0);
        }
Пример #2
0
        public void Policy1_GivenValidPassword_IndicatesValidity(params string[] passordInfoList)
        {
            // Arrange
            var sut = new Day2Engine();
            int result, ignored;

            // Act
            sut.Execute(passordInfoList, out result, out ignored);

            // Assert
            result.Should().Be(passordInfoList.Length);
        }