public void TestSetDefaultStyle() { // setup MessageStyle messageStyle = new MessageStyle(); // when messageStyle.SetDefaultStyle(); // then Assert.AreEqual(200.0, messageStyle.Width); Assert.AreEqual(200.0, messageStyle.Height); Assert.AreEqual(new SolidColorBrush(Colors.Black).ToString(), messageStyle.BorderBrush.ToString()); Assert.AreEqual(new CornerRadius(8), messageStyle.CornerRadius); Assert.AreEqual(new SolidColorBrush(Colors.White).ToString(), messageStyle.Background.ToString()); }
public void TestConstructor() { // when MessageStyle messageStyle = new MessageStyle(); // then Assert.AreEqual(MessagePosition.Right, messageStyle.Position); Assert.AreEqual(new Thickness(12), messageStyle.Padding); Assert.AreEqual(new FontFamily("Meiryo"), messageStyle.FontFamily); Assert.AreEqual(14, messageStyle.FontSize); Assert.AreEqual(0.0, messageStyle.Width); Assert.AreEqual(0.0, messageStyle.Height); Assert.AreEqual(new Thickness(0), messageStyle.BorderThickness); Assert.AreEqual(new CornerRadius(0), messageStyle.CornerRadius); Assert.AreEqual(null, messageStyle.BorderBrush); Assert.AreEqual(null, messageStyle.Background); Assert.AreEqual(null, messageStyle.BackgroundFile); }