示例#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));
        }