public void Text_Always_ReturnExpectedText() { // Setup var mocks = new MockRepository(); var assessmentSection = mocks.Stub <IAssessmentSection>(); mocks.ReplayAll(); var failureMechanism = new StabilityPointStructuresFailureMechanism(); var context = new StabilityPointStructuresContext(failureMechanism.StabilityPointStructures, failureMechanism, assessmentSection); using (var plugin = new StabilityPointStructuresPlugin()) { TreeNodeInfo info = GetInfo(plugin); // Call string text = info.Text(context); // Assert const string expectedText = "Kunstwerken"; Assert.AreEqual(expectedText, text); } mocks.VerifyAll(); }
public void Text_WithContext_ReturnsUniquelyFormattedTargetProbability(double userDefinedTargetProbability1, double userDefinedTargetProbability2, double userDefinedTargetProbability3, string expectedText) { // Setup var failureMechanism = new DuneErosionFailureMechanism(); var calculationsForTargetProbability = new DuneLocationCalculationsForTargetProbability(userDefinedTargetProbability2); failureMechanism.DuneLocationCalculationsForUserDefinedTargetProbabilities.AddRange(new[] { new DuneLocationCalculationsForTargetProbability(userDefinedTargetProbability1), new DuneLocationCalculationsForTargetProbability(userDefinedTargetProbability3), calculationsForTargetProbability }); var context = new DuneLocationCalculationsForUserDefinedTargetProbabilityContext(calculationsForTargetProbability, failureMechanism, new AssessmentSectionStub(new[] { failureMechanism })); // Call string text = info.Text(context); // Assert Assert.AreEqual(expectedText, text); }
public void Text_Always_ReturnsFromResource() { // Call string text = info.Text(null); // Assert Assert.AreEqual("Sterkte berekening", text); }
public void Text_Always_ReturnScenarios() { // Call string text = info.Text(null); // Assert Assert.AreEqual("Scenario's", text); }
public void Text_Always_ReturnsName() { // Call string text = info.Text(null); // Assert Assert.AreEqual(RiskeerCommonFormsResources.FailureMechanism_AssessmentResult_DisplayName, text); }
public void Text_Always_ReturnsName() { // Call string text = info.Text(null); // Assert Assert.AreEqual("Resultaat", text); }
public void Text_Always_ReturnsTextFromResource() { // Call string text = info.Text(null); // Assert Assert.AreEqual("Invoer", text); }
public void Text_Always_ReturnText() { // Call string text = info.Text(null); // Assert Assert.AreEqual("Voorlandprofielen", text); }
public void Text_Always_ReturnExpectedText() { // Call string text = info.Text(null); // Assert const string expectedText = "Dijkprofielen"; Assert.AreEqual(expectedText, text); }
public void Text_WithData_ReturnsNameFromChartData() { // Setup var chartDataCollection = new ChartDataCollection("test data"); // Call string text = info.Text(chartDataCollection); // Assert Assert.AreEqual(chartDataCollection.Name, text); }
public void Text_WithContext_ReturnsNameFromMapData() { // Setup var mapDataCollection = new MapDataCollection("Collectie"); // Call string text = info.Text(GetContext(mapDataCollection)); // Assert Assert.AreEqual(mapDataCollection.Name, text); }
public void Text_Always_ReturnsFromResource() { // Setup mocks.ReplayAll(); // Call string text = info.Text(null); // Assert Assert.AreEqual("HBN", text); }
public void Text_Always_ReturnsNameFromWrappedChartData() { // Setup ChartDataContext context = GetContext(new TestChartData()); // Call string text = info.Text(context); // Assert Assert.AreEqual(context.WrappedData.Name, text); }
public void Text_WithContext_ReturnsNameFromWrappedMapData() { // Setup FeatureBasedMapDataContext context = GetContext(new TestFeatureBasedMapData()); // Call string text = info.Text(context); // Assert Assert.AreEqual(context.WrappedData.Name, text); }
public void Text_Always_ReturnForeshoreProfileName() { // Setup const string profileName = "Random profile name"; ForeshoreProfile foreshoreProfile = new TestForeshoreProfile(profileName, "id"); // Call string text = info.Text(foreshoreProfile); // Assert Assert.AreEqual(profileName, text); }
public void Text_Always_ReturnDikeProfileName() { // Setup const string profileName = "Random profile name"; DikeProfile dikeProfile = DikeProfileTestFactory.CreateDikeProfile(profileName); // Call string text = info.Text(dikeProfile); // Assert Assert.AreEqual(profileName, text); }
public void Text_Always_ReturnsTextFromStochasticSoilModel() { // Setup const string name = "test test 123"; PipingStochasticSoilModel model = PipingStochasticSoilModelTestFactory.CreatePipingStochasticSoilModel(name); // Call string text = info.Text(model); // Assert Assert.AreEqual(name, text); }
public void Text_Always_ReturnsTextFromStochasticSoilModel() { // Setup const string name = "test test 123"; MacroStabilityInwardsStochasticSoilModel model = MacroStabilityInwardsStochasticSoilModelTestFactory.CreateValidStochasticSoilModel(name); // Call string text = info.Text(model); // Assert Assert.AreEqual(name, text); }
public void Text_WithStochasticSoilProfile_ReturnsSoilProfileName() { // Setup const string testName = "ttt"; var stochasticSoilProfile = new PipingStochasticSoilProfile(0.1, PipingSoilProfileTestFactory.CreatePipingSoilProfile(testName)); // Call string text = info.Text(stochasticSoilProfile); // Assert Assert.AreEqual(testName, text); }
public void Text_Always_ReturnNameOfStructure() { // Setup mocks.ReplayAll(); const string name = "very nice name!"; ClosingStructure structure = new TestClosingStructure("id", name); // Call string text = info.Text(structure); // Assert Assert.AreEqual(name, text); }
public void Text_Always_ReturnScenarios() { // Setup var group = new CalculationGroup(); var failureMechanism = new GrassCoverErosionInwardsFailureMechanism(); var context = new GrassCoverErosionInwardsScenariosContext(group, failureMechanism); // Call string text = info.Text(context); // Assert Assert.AreEqual("Scenario's", text); }
public void Text_Always_ReturnsName() { // Setup using (var plugin = new RiskeerPlugin()) { TreeNodeInfo info = GetInfo(plugin); // Call string text = info.Text(null); // Assert Assert.AreEqual("Generieke faalmechanismen", text); } }
public void Text_Always_ReturnsName() { // Setup const string testName = "ttt"; var surfaceLine = new MacroStabilityInwardsSurfaceLine(testName); mocks.ReplayAll(); // Call string text = info.Text(surfaceLine); // Assert Assert.AreEqual(testName, text); }
public void Text_Always_ReturnsSetName() { // Setup using (var plugin = new RiskeerPlugin()) { TreeNodeInfo info = GetInfo(plugin); // Call string text = info.Text(null); // Assert Assert.AreEqual("Veiligheidscategorieën", text); } }
public void Text_Always_ReturnName() { // Setup using (var plugin = new StabilityStoneCoverPlugin()) { TreeNodeInfo info = GetInfo(plugin); // Call string nodeText = info.Text(null); // Assert Assert.AreEqual("Invoer", nodeText); } }
public void Text_Always_ReturnsSetName() { // Setup using (var plugin = new DuneErosionPlugin()) { TreeNodeInfo info = GetInfo(plugin); // Call string text = info.Text(null); // Assert Assert.AreEqual("Hydraulische belastingen", text); } }
public void Text_Always_ReturnName() { // Setup using (var plugin = new GrassCoverErosionOutwardsPlugin()) { TreeNodeInfo info = GetInfo(plugin); // Call string nodeText = info.Text(null); // Assert Assert.AreEqual("Invoer", nodeText); } }
public void Text_Always_ReturnsSetName() { // Setup using (var plugin = new RiskeerPlugin()) { TreeNodeInfo info = GetInfo(plugin); // Call string text = info.Text(null); // Assert Assert.AreEqual("Overzicht duiding", text); } }
public void Text_Always_ReturnsName() { // Setup const string testName = "ttt"; var pipingSurfaceLine = new PipingSurfaceLine(testName); mocks.ReplayAll(); // Call string text = info.Text(pipingSurfaceLine); // Assert Assert.AreEqual(testName, text); }
public void Text_Always_ReturnsSetName() { // Setup using (var plugin = new RiskeerPlugin()) { TreeNodeInfo info = GetInfo(plugin); // Call string text = info.Text(null); // Assert Assert.AreEqual("Golfhoogten bij vrije doelkans", text); } }