static void Main(string[] args) { var colorSelector = new RandomColorSelector(); var color = colorSelector.GetRandomColor(); // in case you are only after the *name* var colorName = colorSelector.GetRandomColorName(); }
public UsingRandomColorSelector() { MockedRandom = new Mock <Random>().SetupAllProperties(); Sut = new RandomColorSelector(MockedRandom.Object); }