public void OnLoaded_WillThrow_WhenOnOrOffTextMissing() { var pillButton = new FakePillButtonCheckbox(); pillButton.ForcedContent = "Off Text"; pillButton.OnApplyTemplate(); pillButton.FireLoadedEvent(); }
public void OnApplyTemplate_WillAssignOnAndOffButtons_Always() { var pillButton = new FakePillButtonCheckbox(); pillButton.OnApplyTemplate(); Assert.IsTrue(pillButton.OnButton != null); Assert.IsTrue(pillButton.OffButton != null); }
public void OnLoaded_WillAssignOffButtonText_Always() { var pillButton = new FakePillButtonCheckbox(); pillButton.ForcedContent = "On Text|Off Text"; pillButton.OnApplyTemplate(); pillButton.FireLoadedEvent(); Assert.AreEqual("Off Text", pillButton.OffButton.Content as string); }