public void Constructor_ValidArguments_ReturnsExpectedValues() { // Setup TopLevelFaultTreeIllustrationPoint topLevelFaultTreeIllustrationPoint = CreateTopLevelFaultTreeIllustrationPoint(); IEnumerable <string> closingSituations = Enumerable.Empty <string>(); // Call var selectedTopLevelFaultTreeIllustrationPoint = new SelectedTopLevelFaultTreeIllustrationPoint(topLevelFaultTreeIllustrationPoint, closingSituations); // Assert Assert.AreSame(topLevelFaultTreeIllustrationPoint, selectedTopLevelFaultTreeIllustrationPoint.TopLevelFaultTreeIllustrationPoint); Assert.AreSame(closingSituations, selectedTopLevelFaultTreeIllustrationPoint.ClosingSituations); }
public void CreateInstance_TopLevelFaultTreeIllustrationPoint_ReturnFaultTreeIllustrationPointBaseProperties() { // Setup var topLevelFaultTreeIllustrationPoint = new TopLevelFaultTreeIllustrationPoint( WindDirectionTestFactory.CreateTestWindDirection(), "Closing situation", new IllustrationPointNode(new TestIllustrationPoint())); var selectedTopLevelFaultTreeIllustrationPoint = new SelectedTopLevelFaultTreeIllustrationPoint(topLevelFaultTreeIllustrationPoint, Enumerable.Empty <string>()); // Call IObjectProperties objectProperties = info.CreateInstance(selectedTopLevelFaultTreeIllustrationPoint); // Assert Assert.IsInstanceOf <TopLevelFaultTreeIllustrationPointProperties>(objectProperties); Assert.AreSame(topLevelFaultTreeIllustrationPoint, objectProperties.Data); }