public void ThrowExceptionForInvalidColor(string textAsColor) { var sut = new TextToPinColorConverter(); Assert.Throws <Exception>(() => sut.Convert(textAsColor)); }
public void ConvertRedAsTextToRedAsPinColor(string textAsColor, PinColor expectedPinColor) { var sut = new TextToPinColorConverter(); Assert.Equal(expectedPinColor, sut.Convert(textAsColor)); }