Exemplo n.º 1
0
        public void ThrowExceptionForInvalidColor(string textAsColor)
        {
            var sut = new TextToPinColorConverter();

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

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