public void any_other_color_that_we_havent_considered_will_be_white() { const string startingValue = "foo"; IValueConverter converter = new BuildStatusToColorConverter(); object convertedValue = converter.Convert(startingValue, null, null, null); Assert.That(Equals(convertedValue.ToString(), Colors.White.ToString())); }
public void a_build_status_of_unknown_is_white() { const string startingValue = "Unknown"; IValueConverter converter = new BuildStatusToColorConverter(); object convertedValue = converter.Convert(startingValue, null, null, null); Assert.That(Equals(convertedValue.ToString(), Colors.White.ToString())); }
public void a_build_status_of_failure_is_red() { const string startingValue = "Failure"; IValueConverter converter = new BuildStatusToColorConverter(); object convertedValue = converter.Convert(startingValue, null, null, null); Assert.That(Equals(convertedValue.ToString(), Colors.Red.ToString())); }
public void a_build_status_of_success_is_green() { const string startingValue = "Success"; IValueConverter converter = new BuildStatusToColorConverter(); object convertedValue = converter.Convert(startingValue, null, null, null); Assert.That(Equals(convertedValue.ToString(), Colors.Green.ToString())); }
public void a_build_status_of_building_is_yellow() { const string startingValue = "Building"; IValueConverter converter = new BuildStatusToColorConverter(); object convertedValue = converter.Convert(startingValue, null, null, null); Assert.That(Equals(convertedValue.ToString(), Colors.Yellow.ToString())); }