示例#1
0
        public void ShouldReplaceNullHeaderWithDefault()
        {
            TabbedLayoutMock target = new TabbedLayoutMock();

            TabbedLayoutMock.SetHeader(target, "header");
            Assert.AreEqual <string>("header", TabbedLayoutMock.GetHeader(target));

            TabbedLayoutMock.SetHeader(target, null);
            Assert.AreEqual <string>(TabbedLayoutMock.DefaultHeader, TabbedLayoutMock.GetHeader(target));
        }
示例#2
0
 public void ShouldFailSettingHeaderForNull()
 {
     TabbedLayoutMock.SetHeader(null, "header");
 }