コード例 #1
0
        public void OptionNames()
        {
            var s     = new SendBoxOptions();
            var names = s.GetOptionNames();

            Assert.AreEqual(propertyNames.Count, names.Count);
        }
コード例 #2
0
        public void ButtonColorHoverCustom()
        {
            var propertyIndex = 7;
            var expectedValue = CreateColor();

            var src = new SendBoxOptions {
                ButtonColorHover = expectedValue
            };
            var so = PopulateOptions(src);

            AssertPopulatedProperty(so, propertyIndex, expectedValue);
        }
コード例 #3
0
        public void TextColorCustom()
        {
            var propertyIndex = 11;
            var expectedValue = CreateColor(KnownColor.Black);

            var src = new SendBoxOptions {
                TextColor = expectedValue
            };
            var so = PopulateOptions(src);

            AssertPopulatedProperty(so, propertyIndex, expectedValue);
        }
コード例 #4
0
        public void HideCustom()
        {
            var propertyIndex = 0;
            var expectedValue = true;

            var src = new SendBoxOptions {
                Hide = expectedValue
            };
            var so = PopulateOptions(src);

            AssertPopulatedProperty(so, propertyIndex, expectedValue);
        }
コード例 #5
0
        public void PlaceholderColorCustom()
        {
            var propertyIndex = 16;
            var expectedValue = CreateColor();

            var src = new SendBoxOptions {
                PlaceholderColor = expectedValue
            };
            var so = PopulateOptions(src);

            AssertPopulatedProperty(so, propertyIndex, expectedValue);
        }
コード例 #6
0
        public void MicrophoneColorCustom()
        {
            var propertyIndex = 2;
            var expectedValue = CreateColor();

            var src = new SendBoxOptions {
                MicrophoneColor = expectedValue
            };
            var so = PopulateOptions(src);

            AssertPopulatedProperty(so, propertyIndex, expectedValue);
        }
コード例 #7
0
        public void TextWrapCustom()
        {
            var propertyIndex = 17;
            var expectedValue = true;

            var src = new SendBoxOptions {
                TextWrap = expectedValue
            };
            var so = PopulateOptions(src);

            AssertPopulatedProperty(so, propertyIndex, expectedValue);
        }
コード例 #8
0
        public void BorderTopCustom()
        {
            var propertyIndex = 15;
            var expectedValue = CreateBorder();

            var src = new SendBoxOptions {
                BorderTop = expectedValue
            };
            var so = PopulateOptions(src);

            AssertPopulatedProperty(so, propertyIndex, expectedValue);
        }
コード例 #9
0
        public void BackgroundColorCustom()
        {
            var propertyIndex = 3;
            var expectedValue = CreateColor(KnownColor.White);

            var src = new SendBoxOptions {
                BackgroundColor = expectedValue
            };
            var so = PopulateOptions(src);

            AssertPopulatedProperty(so, propertyIndex, expectedValue);
        }
コード例 #10
0
        public void HeightMaxCustom()
        {
            var propertyIndex = 10;
            var expectedValue = r.Next(100, 300, SendBoxOptions.Defaults.HeightMax);

            var src = new SendBoxOptions {
                HeightMax = expectedValue
            };
            var so = PopulateOptions(src);

            AssertPopulatedProperty(so, propertyIndex, expectedValue);
        }
コード例 #11
0
        public void TextColorDisabledCustom()
        {
            var propertyIndex = 8;
            var expectedValue = CreateColor();

            var src = new SendBoxOptions {
                TextColorDisabled = expectedValue
            };
            var so = PopulateOptions(src);

            AssertPopulatedProperty(so, propertyIndex, expectedValue);
        }
コード例 #12
0
        public void EmptyContructor()
        {
            var src = new SendBoxOptions
            {
            };

            var so = PopulateOptions(src);

            Assert.AreEqual(0, so.Count);

            so = PopulateOptions(src, true);
            Assert.AreEqual(18, so.Count);
        }
コード例 #13
0
        public void HideDefault()
        {
            var propertyIndex = 0;
            var expectedValue = SendBoxOptions.Defaults.Hide;
            var src           = new SendBoxOptions {
            };

            var so = PopulateOptions(src);

            AssertEmptyProperty(so, propertyIndex);

            so = PopulateOptions(src, true);
            AssertPopulatedProperty(so, propertyIndex, expectedValue);
        }
コード例 #14
0
        public void PlaceholderColorDefault()
        {
            var propertyIndex = 16;
            var expectedValue = SendBoxOptions.Defaults.PlaceholderColor;
            var src           = new SendBoxOptions {
            };

            var so = PopulateOptions(src);

            AssertEmptyProperty(so, propertyIndex);

            so = PopulateOptions(src, true);
            AssertPopulatedProperty(so, propertyIndex, expectedValue);
        }
コード例 #15
0
        public void ButtonColorHoverDefault()
        {
            var propertyIndex = 7;
            var expectedValue = SendBoxOptions.Defaults.ButtonColorHover;
            var src           = new SendBoxOptions {
            };

            var so = PopulateOptions(src);

            AssertEmptyProperty(so, propertyIndex);

            so = PopulateOptions(src, true);
            AssertPopulatedProperty(so, propertyIndex, expectedValue);
        }
コード例 #16
0
        public void BorderBottomDefault()
        {
            var propertyIndex = 12;
            var expectedValue = SendBoxOptions.Defaults.BorderBottom;
            var src           = new SendBoxOptions {
            };

            var so = PopulateOptions(src);

            AssertEmptyProperty(so, propertyIndex);

            so = PopulateOptions(src, true);
            AssertPopulatedProperty(so, propertyIndex, expectedValue);
        }
コード例 #17
0
        public void TextColorDisabledDefault()
        {
            var propertyIndex = 8;
            var expectedValue = SendBoxOptions.Defaults.TextColorDisabled;
            var src           = new SendBoxOptions {
            };

            var so = PopulateOptions(src);

            AssertEmptyProperty(so, propertyIndex);

            so = PopulateOptions(src, true);
            AssertPopulatedProperty(so, propertyIndex, expectedValue);
        }