Пример #1
0
        public void WhenOptionsLabelSet_ShouldUseOptionsLabel()
        {
            const string optionsLabel = "Test";
            Label        label        = new Label();

            Handler.SetHeaderLabelText(label, null, optionsLabel);
            Assert.AreEqual(
                optionsLabel,
                label.text);
        }
Пример #2
0
        public void WhenOptionsLabelNotSet_ShouldUseListName()
        {
            const string listName = "Test";
            Label        label    = new Label();

            Handler.SetHeaderLabelText(label, listName, null);
            Assert.AreEqual(
                listName,
                label.text);
        }
Пример #3
0
 public void WhenLabelIsNull_ShouldNotThrowError()
 {
     Handler.SetHeaderLabelText(null, null, null);
 }