public void IsErrorMessageNeeded_values_ArrayOfSize1_withValue_false_IndexOutOfRangeException()
        {
            var converter = new ChipIdNotUnicErrorMessageConverter();
            var values    = new object[] { false };

            Assert.Throws <IndexOutOfRangeException>(() => converter.IsErrorMessageNeeded(values));
        }
        public void IsErrorMessageNeeded_values_emptyArray_IndexOutOfRangeException()
        {
            var converter = new ChipIdNotUnicErrorMessageConverter();
            var values    = new object[0];

            Assert.Throws <IndexOutOfRangeException>(() => converter.IsErrorMessageNeeded(values));
        }
        public void IsErrorMessageNeeded_values_false_and_anything_that_is_not_IenumerableOfRunner_returns_False(object value2)
        {
            var converter = new ChipIdNotUnicErrorMessageConverter();
            var values    = new object[] { false, value2 };
            var result    = converter.IsErrorMessageNeeded(values);

            Assert.False(result);
        }
        public void IsErrorMessageNeeded_values_false_and_empty_IEnumerableOfRunner_returns_False()
        {
            var converter = new ChipIdNotUnicErrorMessageConverter();
            var values    = new object[] { false, new List <Runner>() };
            var result    = converter.IsErrorMessageNeeded(values);

            Assert.False(result);
        }
        public void IsErrorMessageNeeded_values_false_and_null_returns_false()
        {
            var converter = new ChipIdNotUnicErrorMessageConverter();
            var values    = new object[] { false, null };

            var result = converter.IsErrorMessageNeeded(values);

            Assert.False(result);
        }
        public void IsErrorMessageNeeded_valuesOf1_true_Returns_false()
        {
            var converter = new ChipIdNotUnicErrorMessageConverter();

            var values = new object[] { true };

            var result = converter.IsErrorMessageNeeded(values);

            Assert.False(result);
        }
        public void IsErrorMessageNeeded_values_false_IEnumerableOfRunner_returns_true()
        {
            var converter = new ChipIdNotUnicErrorMessageConverter();
            var runners   = new List <Runner>
            {
                new Runner {
                }
            };
            var values = new object[] { false, runners };

            var result = converter.IsErrorMessageNeeded(values);

            Assert.True(result);
        }
        public void IsErrorMessageNeeded_values_null_NullReferenceException()
        {
            var converter = new ChipIdNotUnicErrorMessageConverter();

            Assert.Throws <NullReferenceException>(() => converter.IsErrorMessageNeeded(null));
        }