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

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

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