public void StyleCore_Equals_ReturnsTrue() { var a = new StyleCore { BackgroundColor = "#f0f0f0f0", BorderColor = "#012345678", BorderThickness = 1.0, FontFamily = "BleBle", FontSize = 11, FontStyle = FontStyle.Italic, FontWeight = FontWeight.UltraBold, TextAlignment = TextAlignment.Justify, TextDecoration = TextDecoration.Strikethrough, TextColor = "#ffff0000", TextWrapping = true }; var b = new StyleCore { BackgroundColor = "#f0f0f0f0", BorderColor = "#012345678", BorderThickness = 1.0, FontFamily = "BleBle", FontSize = 11, FontStyle = FontStyle.Italic, FontWeight = FontWeight.UltraBold, TextAlignment = TextAlignment.Justify, TextDecoration = TextDecoration.Strikethrough, TextColor = "#ffff0000", TextWrapping = true }; Debug.Assert(a.Equals(b)); }
public void StyleCore_CopyingConstructor_CopiesGood() { var prototype = new StyleCore { BackgroundColor = "#f0f0f0f0", BorderColor = "#012345678", BorderThickness = 1.0, FontFamily = "BleBle", FontSize = 11, FontStyle = FontStyle.Italic, FontWeight = FontWeight.UltraBold, TextAlignment = TextAlignment.Justify, TextDecoration = TextDecoration.Strikethrough, TextColor = "#ffff0000", TextWrapping = true }; var copiedStyle = new StyleCore(prototype); Debug.Assert(copiedStyle.Equals(prototype)); }