public void Constructor_ExpectedValues() { // Setup const string symbol = "123"; var fontFamily = new FontFamily(); // Call var layoutAnchorable = new CustomLayoutAnchorable { Symbol = symbol, FontFamily = fontFamily }; // Assert Assert.IsInstanceOf <LayoutAnchorable>(layoutAnchorable); Assert.AreEqual(symbol, layoutAnchorable.Symbol); Assert.AreSame(fontFamily, layoutAnchorable.FontFamily); }
public void AddToolView_WithAllParameters_ViewAddedWithExpectedProperties(ToolViewLocation toolViewLocation) { // Setup using (var avalonDockViewHost = new AvalonDockViewHost()) { const string title = "Random title"; const string symbol = "Random symbol"; var fontFamily = new FontFamily(); var testView = new TestView(); // Call avalonDockViewHost.AddToolView(testView, toolViewLocation, title, symbol, fontFamily); // Assert CustomLayoutAnchorable layoutAnchorable = GetLayoutAnchorable(avalonDockViewHost, testView, toolViewLocation); Assert.AreEqual(title, layoutAnchorable.Title); Assert.AreEqual(symbol, layoutAnchorable.Symbol); Assert.AreSame(fontFamily, layoutAnchorable.FontFamily); } }