Beispiel #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));
        }
Beispiel #2
0
 public void ShouldFailGettingHeaderFromNull()
 {
     TabbedLayoutMock.GetHeader(null);
 }