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)); }
public void ShouldFailSettingHeaderForNull() { TabbedLayoutMock.SetHeader(null, "header"); }