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