示例#1
0
        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()));
        }
示例#2
0
        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()));
        }
示例#3
0
        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()));
        }
示例#4
0
        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()));
        }
示例#5
0
        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()));
        }