Exemple #1
0
        public void ThrowExceptionForInvalidColor(string textAsColor)
        {
            var sut = new TextToPinColorConverter();

            Assert.Throws <Exception>(() => sut.Convert(textAsColor));
        }
Exemple #2
0
 public Mastermind(IEnumerable <string> actual)
 {
     _actual = actual.Select(item => _textToPinColorConverter.Convert(item)).ToImmutableList();
 }
Exemple #3
0
        public void ConvertRedAsTextToRedAsPinColor(string textAsColor, PinColor expectedPinColor)
        {
            var sut = new TextToPinColorConverter();

            Assert.Equal(expectedPinColor, sut.Convert(textAsColor));
        }