1346 lines
55 KiB
C#
1346 lines
55 KiB
C#
// ------------------------------------------------------------------------------
|
|
// <auto-generated>
|
|
// This code was generated by SpecFlow (http://www.specflow.org/).
|
|
// SpecFlow Version:2.4.0.0
|
|
// SpecFlow Generator Version:2.4.0.0
|
|
//
|
|
// Changes to this file may cause incorrect behavior and will be lost if
|
|
// the code is regenerated.
|
|
// </auto-generated>
|
|
// ------------------------------------------------------------------------------
|
|
#region Designer generated code
|
|
#pragma warning disable
|
|
namespace Xylem.Common.Metrology.Measurements.UnitTests
|
|
{
|
|
using TechTalk.SpecFlow;
|
|
|
|
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("TechTalk.SpecFlow", "2.4.0.0")]
|
|
[System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
|
[NUnit.Framework.TestFixtureAttribute()]
|
|
[NUnit.Framework.DescriptionAttribute("MeasurementResults")]
|
|
public partial class MeasurementResultsFeature
|
|
{
|
|
|
|
private TechTalk.SpecFlow.ITestRunner testRunner;
|
|
|
|
#line 1 "MeasurementResults.feature"
|
|
#line hidden
|
|
|
|
[NUnit.Framework.OneTimeSetUpAttribute()]
|
|
public virtual void FeatureSetup()
|
|
{
|
|
testRunner = TechTalk.SpecFlow.TestRunnerManager.GetTestRunner();
|
|
TechTalk.SpecFlow.FeatureInfo featureInfo = new TechTalk.SpecFlow.FeatureInfo(new System.Globalization.CultureInfo("en-US"), "MeasurementResults", "DUT: Device under test\r\nREF: Reference for measurements, either a weight scale or" +
|
|
" a REF-meter\r\n\r\n[SRS_TBF_COMMON_METRO_001] DUT measured volume calculation\r\nFor " +
|
|
"the “Static Start/Stop” the measurement-time is out of focus because the REF vol" +
|
|
"ume will be obtained \r\nfrom a weight-scale or a REF meter. Therefore the DUT-vol" +
|
|
"ume can be directly calculated using the \r\ndifference between the start- and sto" +
|
|
"p-volume taking an overflow into account: \r\nDutVolumeCm [m³] = (DutStopVolumeCm" +
|
|
" [m³] + DutOverflowVolumeCm [m³]) - DutStartVolumeCm [m³]\r\n\r\n[SRS_TBF_COMMON_MET" +
|
|
"RO_002] DUT measured time calculation\r\nFor the DUT-time can be directly calculat" +
|
|
"ed using the difference between the start- and stop-time given by \r\nthe DUT and " +
|
|
"the overflow time: \r\nDutTimeS [s] = (DutStopTimeS [s] + DutOverflowTimeS [s]) - " +
|
|
"DutStartTimeS [s]\r\n\r\n[SRS_TBF_COMMON_METRO _003] DUT measured flow-rate calculat" +
|
|
"ion\r\nFor the flow-rate calculation the individual DUT-volume and the DUT-time is" +
|
|
" being needed:\r\nDutFlowRateQmPh [m³/h] = DutVolumeCm [m³] / DutTimeS [s] * 3600 " +
|
|
"[s/h]\r\n\r\n[SRS_TBF_COMMON_METRO _004] DUT versus REF volume correction \r\nFor the " +
|
|
"“Flying Start/ Stop Measurement” the REF time is being used to recalculate the v" +
|
|
"olume during \r\nthe test time, due to the fact, that the start and stop data reco" +
|
|
"rd may be delayed by the software program \r\nflow or the unpredictable operationa" +
|
|
"l system timing:\r\nCorrDutVolumeCm [m³] = DutFlowRateQmPh [m³/h] * RefTimeS [s] /" +
|
|
" 3600 [s/h]\r\n\r\n[SRS_TBF_COMMON_METRO _005] DUT to REF scale factor calculation\r\n" +
|
|
"The calibration is being done using the measured DUT-volume of each individual p" +
|
|
"ath, the REF-volume, measured \r\nby a weight scale or a REF meter, and for the fl" +
|
|
"ying start/stop measurement the timings of the individual \r\nDUT-channel and the " +
|
|
"precisely timing of the REF system. The absolute values are going to be used to " +
|
|
"calculate \r\nthe unit-less scale factor:\r\nScaleFactorRefToDut [] = |RefVolumeCm| " +
|
|
"/ |DutVolumeCm|\r\n\r\n[SRS_TBF_COMMON_METRO _006] DUT from REF deviation calculatio" +
|
|
"n\r\nThe deviation at a specific flow rate shall be calculated using the REF and t" +
|
|
"he measured volume. The \r\ndeviation calculation shall be based on absolute value" +
|
|
"s to be independent of the direction of the flow rate:\r\nDeviationDutToRefRel [] " +
|
|
"= (|DutVolumeCm [m³]| - |RefVolumeCm [m³]|) / |RefVolumeCm [m³]|\r\nDeviationDutTo" +
|
|
"RefPer [%] = DeviationDutToRefRel [] * 100%\r\n\r\n[SRS_TBF_COMMON_METRO _007] Chann" +
|
|
"el assignment check\r\nIt shall be checked if the required and the start- and end-" +
|
|
"record-channels are identical to avoid comparison \r\nof unequally channels.", ProgrammingLanguage.CSharp, ((string[])(null)));
|
|
testRunner.OnFeatureStart(featureInfo);
|
|
}
|
|
|
|
[NUnit.Framework.OneTimeTearDownAttribute()]
|
|
public virtual void FeatureTearDown()
|
|
{
|
|
testRunner.OnFeatureEnd();
|
|
testRunner = null;
|
|
}
|
|
|
|
[NUnit.Framework.SetUpAttribute()]
|
|
public virtual void TestInitialize()
|
|
{
|
|
}
|
|
|
|
[NUnit.Framework.TearDownAttribute()]
|
|
public virtual void ScenarioTearDown()
|
|
{
|
|
testRunner.OnScenarioEnd();
|
|
}
|
|
|
|
public virtual void ScenarioInitialize(TechTalk.SpecFlow.ScenarioInfo scenarioInfo)
|
|
{
|
|
testRunner.OnScenarioInitialize(scenarioInfo);
|
|
testRunner.ScenarioContext.ScenarioContainer.RegisterInstanceAs<NUnit.Framework.TestContext>(NUnit.Framework.TestContext.CurrentContext);
|
|
}
|
|
|
|
public virtual void ScenarioStart()
|
|
{
|
|
testRunner.OnScenarioStart();
|
|
}
|
|
|
|
public virtual void ScenarioCleanup()
|
|
{
|
|
testRunner.CollectScenarioErrors();
|
|
}
|
|
|
|
[NUnit.Framework.TestAttribute()]
|
|
[NUnit.Framework.DescriptionAttribute("1.0_[SRS_TBF_COMMON_METRO_001]_DutVolumeCalculation_VALID_volume")]
|
|
public virtual void _1_0_SRS_TBF_COMMON_METRO_001_DutVolumeCalculation_VALID_Volume()
|
|
{
|
|
TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("1.0_[SRS_TBF_COMMON_METRO_001]_DutVolumeCalculation_VALID_volume", null, ((string[])(null)));
|
|
#line 44
|
|
this.ScenarioInitialize(scenarioInfo);
|
|
this.ScenarioStart();
|
|
#line hidden
|
|
TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] {
|
|
"Test",
|
|
"DutStartVolumeCm",
|
|
"DutStopVolumeCm",
|
|
"DutStartTimeS",
|
|
"DutStopTimeS",
|
|
"Comment"});
|
|
table1.AddRow(new string[] {
|
|
"0",
|
|
"0.0",
|
|
"6.0",
|
|
"0.0",
|
|
"180.0",
|
|
"Positive direction"});
|
|
table1.AddRow(new string[] {
|
|
"1",
|
|
"0.2",
|
|
"6.2",
|
|
"0.0",
|
|
"180.0",
|
|
"Offset volume"});
|
|
table1.AddRow(new string[] {
|
|
"2",
|
|
"0.0",
|
|
"-6.0",
|
|
"0.0",
|
|
"180.0",
|
|
"Negative direction"});
|
|
table1.AddRow(new string[] {
|
|
"3",
|
|
"-0.2",
|
|
"-6.2",
|
|
"0.0",
|
|
"180.0",
|
|
"Offset volume"});
|
|
table1.AddRow(new string[] {
|
|
"4",
|
|
"-0.2",
|
|
"5.8",
|
|
"0.0",
|
|
"180.0",
|
|
"Zero crossing"});
|
|
#line 45
|
|
testRunner.Given("Assign measurement values", ((string)(null)), table1, "Given ");
|
|
#line 53
|
|
testRunner.When("Calculate measurement results - minimal input", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
|
|
#line hidden
|
|
TechTalk.SpecFlow.Table table2 = new TechTalk.SpecFlow.Table(new string[] {
|
|
"Test",
|
|
"DutVolumeCm",
|
|
"State",
|
|
"Comment"});
|
|
table2.AddRow(new string[] {
|
|
"0",
|
|
"6.0",
|
|
"Okay",
|
|
"Positive direction"});
|
|
table2.AddRow(new string[] {
|
|
"1",
|
|
"6.0",
|
|
"Okay",
|
|
"Offset volume"});
|
|
table2.AddRow(new string[] {
|
|
"2",
|
|
"-6.0",
|
|
"Okay",
|
|
"Negative direction"});
|
|
table2.AddRow(new string[] {
|
|
"3",
|
|
"-6.0",
|
|
"Okay",
|
|
"Offset volume"});
|
|
table2.AddRow(new string[] {
|
|
"4",
|
|
"6.0",
|
|
"Okay",
|
|
"Zero crossing"});
|
|
#line 54
|
|
testRunner.Then("Test measurement results", ((string)(null)), table2, "Then ");
|
|
#line hidden
|
|
this.ScenarioCleanup();
|
|
}
|
|
|
|
[NUnit.Framework.TestAttribute()]
|
|
[NUnit.Framework.DescriptionAttribute("1.1_[SRS_TBF_COMMON_METRO_001]_DutVolumeCalculation_VALID_volume with overflow")]
|
|
public virtual void _1_1_SRS_TBF_COMMON_METRO_001_DutVolumeCalculation_VALID_VolumeWithOverflow()
|
|
{
|
|
TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("1.1_[SRS_TBF_COMMON_METRO_001]_DutVolumeCalculation_VALID_volume with overflow", null, ((string[])(null)));
|
|
#line 64
|
|
this.ScenarioInitialize(scenarioInfo);
|
|
this.ScenarioStart();
|
|
#line hidden
|
|
TechTalk.SpecFlow.Table table3 = new TechTalk.SpecFlow.Table(new string[] {
|
|
"Test",
|
|
"DutStartVolumeCm",
|
|
"DutStopVolumeCm",
|
|
"DutStartTimeS",
|
|
"DutStopTimeS",
|
|
"DutOverflowVolumeCm",
|
|
"Comment"});
|
|
table3.AddRow(new string[] {
|
|
"0",
|
|
"0.0",
|
|
"2.0",
|
|
"0.0",
|
|
"180.0",
|
|
"4.0",
|
|
"Positive direction"});
|
|
table3.AddRow(new string[] {
|
|
"1",
|
|
"0.2",
|
|
"2.2",
|
|
"0.0",
|
|
"180.0",
|
|
"4.0",
|
|
"Positive direction"});
|
|
table3.AddRow(new string[] {
|
|
"2",
|
|
"0.0",
|
|
"-2.0",
|
|
"0.0",
|
|
"180.0",
|
|
"-4.0",
|
|
"Negative direction"});
|
|
table3.AddRow(new string[] {
|
|
"3",
|
|
"-0.2",
|
|
"-2.2",
|
|
"0.0",
|
|
"180.0",
|
|
"-4.0",
|
|
"Negative direction"});
|
|
#line 65
|
|
testRunner.Given("Assign measurement values", ((string)(null)), table3, "Given ");
|
|
#line 72
|
|
testRunner.When("Calculate measurement results - over flow volume input", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
|
|
#line hidden
|
|
TechTalk.SpecFlow.Table table4 = new TechTalk.SpecFlow.Table(new string[] {
|
|
"Test",
|
|
"DutVolumeCm",
|
|
"State",
|
|
"Comment"});
|
|
table4.AddRow(new string[] {
|
|
"0",
|
|
"6.0",
|
|
"Okay",
|
|
"Positive direction"});
|
|
table4.AddRow(new string[] {
|
|
"1",
|
|
"6.0",
|
|
"Okay",
|
|
"Positive direction"});
|
|
table4.AddRow(new string[] {
|
|
"2",
|
|
"-6.0",
|
|
"Okay",
|
|
"Negative direction"});
|
|
table4.AddRow(new string[] {
|
|
"3",
|
|
"-6.0",
|
|
"Okay",
|
|
"Negative direction"});
|
|
#line 73
|
|
testRunner.Then("Test measurement results", ((string)(null)), table4, "Then ");
|
|
#line hidden
|
|
this.ScenarioCleanup();
|
|
}
|
|
|
|
[NUnit.Framework.TestAttribute()]
|
|
[NUnit.Framework.DescriptionAttribute("1.2_[SRS_TBF_COMMON_METRO_001]_DutVolumeCalculation_INVALID_volume")]
|
|
public virtual void _1_2_SRS_TBF_COMMON_METRO_001_DutVolumeCalculation_INVALID_Volume()
|
|
{
|
|
TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("1.2_[SRS_TBF_COMMON_METRO_001]_DutVolumeCalculation_INVALID_volume", null, ((string[])(null)));
|
|
#line 82
|
|
this.ScenarioInitialize(scenarioInfo);
|
|
this.ScenarioStart();
|
|
#line hidden
|
|
TechTalk.SpecFlow.Table table5 = new TechTalk.SpecFlow.Table(new string[] {
|
|
"Test",
|
|
"DutStartVolumeCm",
|
|
"DutStopVolumeCm",
|
|
"DutStartTimeS",
|
|
"DutStopTimeS",
|
|
"DutOverflowVolumeCm",
|
|
"Comment"});
|
|
table5.AddRow(new string[] {
|
|
"0",
|
|
"0.0",
|
|
"0.0",
|
|
"0.0",
|
|
"180.0",
|
|
"0.0",
|
|
"DUT didn\'t measure"});
|
|
#line 83
|
|
testRunner.Given("Assign measurement values", ((string)(null)), table5, "Given ");
|
|
#line 88
|
|
testRunner.When("Calculate measurement results - over flow volume input", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
|
|
#line hidden
|
|
TechTalk.SpecFlow.Table table6 = new TechTalk.SpecFlow.Table(new string[] {
|
|
"Test",
|
|
"DutVolumeCm",
|
|
"State",
|
|
"Comment"});
|
|
table6.AddRow(new string[] {
|
|
"0",
|
|
"0.0",
|
|
"ZeroDutVolume",
|
|
"DUT didn\'t measure"});
|
|
#line 89
|
|
testRunner.Then("Test measurement results", ((string)(null)), table6, "Then ");
|
|
#line hidden
|
|
this.ScenarioCleanup();
|
|
}
|
|
|
|
[NUnit.Framework.TestAttribute()]
|
|
[NUnit.Framework.DescriptionAttribute("2.0_[SRS_TBF_COMMON_METRO_002]_DutTimeCalculation_VALID_time")]
|
|
public virtual void _2_0_SRS_TBF_COMMON_METRO_002_DutTimeCalculation_VALID_Time()
|
|
{
|
|
TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("2.0_[SRS_TBF_COMMON_METRO_002]_DutTimeCalculation_VALID_time", null, ((string[])(null)));
|
|
#line 95
|
|
this.ScenarioInitialize(scenarioInfo);
|
|
this.ScenarioStart();
|
|
#line hidden
|
|
TechTalk.SpecFlow.Table table7 = new TechTalk.SpecFlow.Table(new string[] {
|
|
"Test",
|
|
"DutStartVolumeCm",
|
|
"DutStopVolumeCm",
|
|
"DutStartTimeS",
|
|
"DutStopTimeS",
|
|
"Comment"});
|
|
table7.AddRow(new string[] {
|
|
"0",
|
|
"0.0",
|
|
"6.0",
|
|
"0.0",
|
|
"180.0",
|
|
"Time increasing"});
|
|
table7.AddRow(new string[] {
|
|
"1",
|
|
"0.0",
|
|
"6.0",
|
|
"10.0",
|
|
"190.0",
|
|
"Time offset"});
|
|
#line 96
|
|
testRunner.Given("Assign measurement values", ((string)(null)), table7, "Given ");
|
|
#line 101
|
|
testRunner.When("Calculate measurement results - minimal input", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
|
|
#line hidden
|
|
TechTalk.SpecFlow.Table table8 = new TechTalk.SpecFlow.Table(new string[] {
|
|
"Test",
|
|
"DutTimeS",
|
|
"State",
|
|
"Comment"});
|
|
table8.AddRow(new string[] {
|
|
"0",
|
|
"180.0",
|
|
"Okay",
|
|
"Time increasing"});
|
|
table8.AddRow(new string[] {
|
|
"1",
|
|
"180.0",
|
|
"Okay",
|
|
"Time offset"});
|
|
#line 102
|
|
testRunner.Then("Test measurement results", ((string)(null)), table8, "Then ");
|
|
#line hidden
|
|
this.ScenarioCleanup();
|
|
}
|
|
|
|
[NUnit.Framework.TestAttribute()]
|
|
[NUnit.Framework.DescriptionAttribute("2.1_[SRS_TBF_COMMON_METRO_002]_DutTimeCalculation_VALID_time with overflow")]
|
|
public virtual void _2_1_SRS_TBF_COMMON_METRO_002_DutTimeCalculation_VALID_TimeWithOverflow()
|
|
{
|
|
TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("2.1_[SRS_TBF_COMMON_METRO_002]_DutTimeCalculation_VALID_time with overflow", null, ((string[])(null)));
|
|
#line 109
|
|
this.ScenarioInitialize(scenarioInfo);
|
|
this.ScenarioStart();
|
|
#line hidden
|
|
TechTalk.SpecFlow.Table table9 = new TechTalk.SpecFlow.Table(new string[] {
|
|
"Test",
|
|
"DutStartVolumeCm",
|
|
"DutStopVolumeCm",
|
|
"DutStartTimeS",
|
|
"DutStopTimeS",
|
|
"DutOverflowTimeS",
|
|
"Comment"});
|
|
table9.AddRow(new string[] {
|
|
"0",
|
|
"0.0",
|
|
"6.0",
|
|
"0.0",
|
|
"80.0",
|
|
"100.0",
|
|
"Time with overflow"});
|
|
table9.AddRow(new string[] {
|
|
"1",
|
|
"0.0",
|
|
"6.0",
|
|
"100.0",
|
|
"80.0",
|
|
"200.0",
|
|
"Start time higher"});
|
|
#line 110
|
|
testRunner.Given("Assign measurement values", ((string)(null)), table9, "Given ");
|
|
#line 115
|
|
testRunner.When("Calculate measurement results - over flow time input", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
|
|
#line hidden
|
|
TechTalk.SpecFlow.Table table10 = new TechTalk.SpecFlow.Table(new string[] {
|
|
"Test",
|
|
"DutTimeS",
|
|
"State",
|
|
"Comment"});
|
|
table10.AddRow(new string[] {
|
|
"0",
|
|
"180.0",
|
|
"Okay",
|
|
"Time with overflow"});
|
|
table10.AddRow(new string[] {
|
|
"1",
|
|
"180.0",
|
|
"Okay",
|
|
"Start time higher"});
|
|
#line 116
|
|
testRunner.Then("Test measurement results", ((string)(null)), table10, "Then ");
|
|
#line hidden
|
|
this.ScenarioCleanup();
|
|
}
|
|
|
|
[NUnit.Framework.TestAttribute()]
|
|
[NUnit.Framework.DescriptionAttribute("2.2_[SRS_TBF_COMMON_METRO_002]_DutTimeCalculation_INVALID_time")]
|
|
public virtual void _2_2_SRS_TBF_COMMON_METRO_002_DutTimeCalculation_INVALID_Time()
|
|
{
|
|
TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("2.2_[SRS_TBF_COMMON_METRO_002]_DutTimeCalculation_INVALID_time", null, ((string[])(null)));
|
|
#line 123
|
|
this.ScenarioInitialize(scenarioInfo);
|
|
this.ScenarioStart();
|
|
#line hidden
|
|
TechTalk.SpecFlow.Table table11 = new TechTalk.SpecFlow.Table(new string[] {
|
|
"Test",
|
|
"DutStartTimeS",
|
|
"DutStopTimeS",
|
|
"DutOverflowTimeS",
|
|
"Comment"});
|
|
table11.AddRow(new string[] {
|
|
"0",
|
|
"0.0",
|
|
"0.0",
|
|
"0.0",
|
|
"DUT didn\'t measure"});
|
|
table11.AddRow(new string[] {
|
|
"1",
|
|
"100.0",
|
|
"80.0",
|
|
"0.0",
|
|
"End time below start time"});
|
|
table11.AddRow(new string[] {
|
|
"2",
|
|
"0.0",
|
|
"80.0",
|
|
"-100.0",
|
|
"Negative overflow time"});
|
|
table11.AddRow(new string[] {
|
|
"3",
|
|
"-10.0",
|
|
"80.0",
|
|
"0.0",
|
|
"Negative start time"});
|
|
table11.AddRow(new string[] {
|
|
"4",
|
|
"0.0",
|
|
"-80.0",
|
|
"0.0",
|
|
"Negative stop time"});
|
|
table11.AddRow(new string[] {
|
|
"5",
|
|
"-100.0",
|
|
"-80.0",
|
|
"0.0",
|
|
"Negative start and stop time"});
|
|
#line 124
|
|
testRunner.Given("Assign measurement values", ((string)(null)), table11, "Given ");
|
|
#line 134
|
|
testRunner.When("Calculate measurement results - over flow time input", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
|
|
#line hidden
|
|
TechTalk.SpecFlow.Table table12 = new TechTalk.SpecFlow.Table(new string[] {
|
|
"Test",
|
|
"DutTimeS",
|
|
"State",
|
|
"Comment"});
|
|
table12.AddRow(new string[] {
|
|
"0",
|
|
"0.0",
|
|
"ZeroDutTime",
|
|
"DUT didn\'t measure"});
|
|
table12.AddRow(new string[] {
|
|
"1",
|
|
"-20.0",
|
|
"InvalidDutTime",
|
|
"End time below start time"});
|
|
table12.AddRow(new string[] {
|
|
"2",
|
|
"-20.0",
|
|
"InvalidOverFlowTime",
|
|
"Negative overflow time"});
|
|
table12.AddRow(new string[] {
|
|
"3",
|
|
"90.0",
|
|
"InvalidDutTime",
|
|
"Negative start time"});
|
|
table12.AddRow(new string[] {
|
|
"4",
|
|
"-80.0",
|
|
"InvalidDutTime",
|
|
"Negative stop time"});
|
|
table12.AddRow(new string[] {
|
|
"5",
|
|
"20.0",
|
|
"InvalidDutTime",
|
|
"Negative start and stop time"});
|
|
#line 135
|
|
testRunner.Then("Test measurement results", ((string)(null)), table12, "Then ");
|
|
#line hidden
|
|
this.ScenarioCleanup();
|
|
}
|
|
|
|
[NUnit.Framework.TestAttribute()]
|
|
[NUnit.Framework.DescriptionAttribute("3.0_[SRS_TBF_COMMON_METRO_003]_DutFowRateCalculation_VALID_records with overflow")]
|
|
public virtual void _3_0_SRS_TBF_COMMON_METRO_003_DutFowRateCalculation_VALID_RecordsWithOverflow()
|
|
{
|
|
TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("3.0_[SRS_TBF_COMMON_METRO_003]_DutFowRateCalculation_VALID_records with overflow", null, ((string[])(null)));
|
|
#line 146
|
|
this.ScenarioInitialize(scenarioInfo);
|
|
this.ScenarioStart();
|
|
#line hidden
|
|
TechTalk.SpecFlow.Table table13 = new TechTalk.SpecFlow.Table(new string[] {
|
|
"Test",
|
|
"DutStartVolumeCm",
|
|
"DutStopVolumeCm",
|
|
"DutOverflowVolumeCm",
|
|
"DutStartTimeS",
|
|
"DutStopTimeS",
|
|
"DutOverflowTimeS",
|
|
"Comment"});
|
|
table13.AddRow(new string[] {
|
|
"0",
|
|
"0.0",
|
|
"1.8",
|
|
"4.2",
|
|
"0.0",
|
|
"180.0",
|
|
"0.0",
|
|
"Positive direction"});
|
|
#line 147
|
|
testRunner.Given("Assign measurement values", ((string)(null)), table13, "Given ");
|
|
#line 150
|
|
testRunner.When("Calculate measurement results - full input", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
|
|
#line hidden
|
|
TechTalk.SpecFlow.Table table14 = new TechTalk.SpecFlow.Table(new string[] {
|
|
"Test",
|
|
"DutVolumeCm",
|
|
"DutTimeS",
|
|
"DutFlowRateCmPh",
|
|
"State",
|
|
"Comment"});
|
|
table14.AddRow(new string[] {
|
|
"0",
|
|
"6.0",
|
|
"180.0",
|
|
"120.0",
|
|
"Okay",
|
|
"Positive direction"});
|
|
#line 151
|
|
testRunner.Then("Test measurement results", ((string)(null)), table14, "Then ");
|
|
#line hidden
|
|
this.ScenarioCleanup();
|
|
}
|
|
|
|
[NUnit.Framework.TestAttribute()]
|
|
[NUnit.Framework.DescriptionAttribute("3.1_[SRS_TBF_COMMON_METRO_003]_DutFlowRateCalculation_INVALID_records")]
|
|
public virtual void _3_1_SRS_TBF_COMMON_METRO_003_DutFlowRateCalculation_INVALID_Records()
|
|
{
|
|
TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("3.1_[SRS_TBF_COMMON_METRO_003]_DutFlowRateCalculation_INVALID_records", null, ((string[])(null)));
|
|
#line 157
|
|
this.ScenarioInitialize(scenarioInfo);
|
|
this.ScenarioStart();
|
|
#line hidden
|
|
TechTalk.SpecFlow.Table table15 = new TechTalk.SpecFlow.Table(new string[] {
|
|
"Test",
|
|
"DutStartVolumeCm",
|
|
"DutStopVolumeCm",
|
|
"DutOverflowVolumeCm",
|
|
"DutStartTimeS",
|
|
"DutStopTimeS",
|
|
"DutOverflowTimeS",
|
|
"Comment"});
|
|
table15.AddRow(new string[] {
|
|
"0",
|
|
"0.0",
|
|
"0.0",
|
|
"0.0",
|
|
"0.0",
|
|
"0.0",
|
|
"0.0",
|
|
"DUT didn\'t measure"});
|
|
table15.AddRow(new string[] {
|
|
"1",
|
|
"0.0",
|
|
"0.0",
|
|
"0.0",
|
|
"0.0",
|
|
"180.0",
|
|
"0.0",
|
|
"DUT didn\'t measure"});
|
|
#line 158
|
|
testRunner.Given("Assign measurement values", ((string)(null)), table15, "Given ");
|
|
#line 162
|
|
testRunner.When("Calculate measurement results - full input", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
|
|
#line hidden
|
|
TechTalk.SpecFlow.Table table16 = new TechTalk.SpecFlow.Table(new string[] {
|
|
"Test",
|
|
"DutVolumeCm",
|
|
"DutTimeS",
|
|
"DutFlowRateCmPh",
|
|
"State",
|
|
"Comment"});
|
|
table16.AddRow(new string[] {
|
|
"0",
|
|
"0.0",
|
|
"0.0",
|
|
"null",
|
|
"ZeroDutTime",
|
|
"DUT didn\'t measure"});
|
|
table16.AddRow(new string[] {
|
|
"1",
|
|
"0.0",
|
|
"180.0",
|
|
"0.0",
|
|
"ZeroDutVolume",
|
|
"DUT didn\'t measure"});
|
|
#line 163
|
|
testRunner.Then("Test measurement results", ((string)(null)), table16, "Then ");
|
|
#line hidden
|
|
this.ScenarioCleanup();
|
|
}
|
|
|
|
[NUnit.Framework.TestAttribute()]
|
|
[NUnit.Framework.DescriptionAttribute("4.0_[SRS_TBF_COMMON_METRO_004]_DutVersusRefVolumeCorrection_VALID_Ref time")]
|
|
public virtual void _4_0_SRS_TBF_COMMON_METRO_004_DutVersusRefVolumeCorrection_VALID_RefTime()
|
|
{
|
|
TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("4.0_[SRS_TBF_COMMON_METRO_004]_DutVersusRefVolumeCorrection_VALID_Ref time", null, ((string[])(null)));
|
|
#line 171
|
|
this.ScenarioInitialize(scenarioInfo);
|
|
this.ScenarioStart();
|
|
#line hidden
|
|
TechTalk.SpecFlow.Table table17 = new TechTalk.SpecFlow.Table(new string[] {
|
|
"Test",
|
|
"DutStartVolumeCm",
|
|
"DutStopVolumeCm",
|
|
"DutStartTimeS",
|
|
"DutStopTimeS",
|
|
"RefVolumeCm",
|
|
"RefTimeS",
|
|
"Comment"});
|
|
table17.AddRow(new string[] {
|
|
"0",
|
|
"0.0",
|
|
"6.2",
|
|
"0.0",
|
|
"186.0",
|
|
"6.0",
|
|
"180.0",
|
|
"Positive direction"});
|
|
table17.AddRow(new string[] {
|
|
"1",
|
|
"2.0",
|
|
"8.2",
|
|
"0.0",
|
|
"186.0",
|
|
"6.0",
|
|
"180.0",
|
|
"Offset volume"});
|
|
table17.AddRow(new string[] {
|
|
"2",
|
|
"0.0",
|
|
"-6.2",
|
|
"0.0",
|
|
"186.0",
|
|
"6.0",
|
|
"180.0",
|
|
"Negative direction"});
|
|
table17.AddRow(new string[] {
|
|
"3",
|
|
"-2.0",
|
|
"-8.2",
|
|
"0.0",
|
|
"186.0",
|
|
"6.0",
|
|
"180.0",
|
|
"Offset volume"});
|
|
table17.AddRow(new string[] {
|
|
"4",
|
|
"-2.0",
|
|
"4.2",
|
|
"0.0",
|
|
"186.0",
|
|
"6.0",
|
|
"180.0",
|
|
"Zero crossing"});
|
|
#line 172
|
|
testRunner.Given("Assign measurement values", ((string)(null)), table17, "Given ");
|
|
#line 180
|
|
testRunner.When("Calculate measurement results - full input", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
|
|
#line hidden
|
|
TechTalk.SpecFlow.Table table18 = new TechTalk.SpecFlow.Table(new string[] {
|
|
"Test",
|
|
"DutVolumeCm",
|
|
"DutTimeS",
|
|
"DutFlowRateCmPh",
|
|
"CorrDutVolumeCm",
|
|
"State",
|
|
"Comment"});
|
|
table18.AddRow(new string[] {
|
|
"0",
|
|
"6.2",
|
|
"186.0",
|
|
"120.0",
|
|
"6.0",
|
|
"Okay",
|
|
"Positive direction"});
|
|
table18.AddRow(new string[] {
|
|
"1",
|
|
"6.2",
|
|
"186.0",
|
|
"120.0",
|
|
"6.0",
|
|
"Okay",
|
|
"Offset volume"});
|
|
table18.AddRow(new string[] {
|
|
"2",
|
|
"-6.2",
|
|
"186.0",
|
|
"-120.0",
|
|
"-6.0",
|
|
"Okay",
|
|
"Negative direction"});
|
|
table18.AddRow(new string[] {
|
|
"3",
|
|
"-6.2",
|
|
"186.0",
|
|
"-120.0",
|
|
"-6.0",
|
|
"Okay",
|
|
"Offset volume"});
|
|
table18.AddRow(new string[] {
|
|
"4",
|
|
"6.2",
|
|
"186.0",
|
|
"120.0",
|
|
"6.0",
|
|
"Okay",
|
|
"Zero crossing"});
|
|
#line 182
|
|
testRunner.Then("Test measurement results", ((string)(null)), table18, "Then ");
|
|
#line hidden
|
|
this.ScenarioCleanup();
|
|
}
|
|
|
|
[NUnit.Framework.TestAttribute()]
|
|
[NUnit.Framework.DescriptionAttribute("4.1_[SRS_TBF_COMMON_METRO_004]_DutVersusRefVolumeCorrection_INVALID_Ref time")]
|
|
public virtual void _4_1_SRS_TBF_COMMON_METRO_004_DutVersusRefVolumeCorrection_INVALID_RefTime()
|
|
{
|
|
TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("4.1_[SRS_TBF_COMMON_METRO_004]_DutVersusRefVolumeCorrection_INVALID_Ref time", null, ((string[])(null)));
|
|
#line 191
|
|
this.ScenarioInitialize(scenarioInfo);
|
|
this.ScenarioStart();
|
|
#line hidden
|
|
TechTalk.SpecFlow.Table table19 = new TechTalk.SpecFlow.Table(new string[] {
|
|
"Test",
|
|
"DutStartVolumeCm",
|
|
"DutStopVolumeCm",
|
|
"DutStartTimeS",
|
|
"DutStopTimeS",
|
|
"RefVolumeCm",
|
|
"RefTimeS",
|
|
"Comment"});
|
|
table19.AddRow(new string[] {
|
|
"0",
|
|
"0.0",
|
|
"6.2",
|
|
"0.0",
|
|
"186.0",
|
|
"6.0",
|
|
"0.0",
|
|
"REF time zero"});
|
|
table19.AddRow(new string[] {
|
|
"1",
|
|
"0.0",
|
|
"6.2",
|
|
"0.0",
|
|
"186.0",
|
|
"6.0",
|
|
"-180.0",
|
|
"REF time invalid"});
|
|
#line 192
|
|
testRunner.Given("Assign measurement values", ((string)(null)), table19, "Given ");
|
|
#line 197
|
|
testRunner.When("Calculate measurement results - full input", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
|
|
#line hidden
|
|
TechTalk.SpecFlow.Table table20 = new TechTalk.SpecFlow.Table(new string[] {
|
|
"Test",
|
|
"DutVolumeCm",
|
|
"DutTimeS",
|
|
"DutFlowRateCmPh",
|
|
"CorrDutVolumeCm",
|
|
"State",
|
|
"Comment"});
|
|
table20.AddRow(new string[] {
|
|
"0",
|
|
"6.2",
|
|
"186.0",
|
|
"120.0",
|
|
"6.2",
|
|
"ZeroRefTime",
|
|
"REF time zero"});
|
|
table20.AddRow(new string[] {
|
|
"1",
|
|
"6.2",
|
|
"186.0",
|
|
"120.0",
|
|
"6.2",
|
|
"InvalidRefTime",
|
|
"REF time invalid"});
|
|
#line 199
|
|
testRunner.Then("Test measurement results", ((string)(null)), table20, "Then ");
|
|
#line hidden
|
|
this.ScenarioCleanup();
|
|
}
|
|
|
|
[NUnit.Framework.TestAttribute()]
|
|
[NUnit.Framework.DescriptionAttribute("5.0_[SRS_TBF_COMMON_METRO_005]_DutToRefScaleFactorCalculation_VALID_Ref volume st" +
|
|
"atic start stop")]
|
|
public virtual void _5_0_SRS_TBF_COMMON_METRO_005_DutToRefScaleFactorCalculation_VALID_RefVolumeStaticStartStop()
|
|
{
|
|
TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("5.0_[SRS_TBF_COMMON_METRO_005]_DutToRefScaleFactorCalculation_VALID_Ref volume st" +
|
|
"atic start stop", null, ((string[])(null)));
|
|
#line 205
|
|
this.ScenarioInitialize(scenarioInfo);
|
|
this.ScenarioStart();
|
|
#line hidden
|
|
TechTalk.SpecFlow.Table table21 = new TechTalk.SpecFlow.Table(new string[] {
|
|
"Test",
|
|
"DutStartVolumeCm",
|
|
"DutStopVolumeCm",
|
|
"DutStartTimeS",
|
|
"DutStopTimeS",
|
|
"RefVolumeCm",
|
|
"Comment"});
|
|
table21.AddRow(new string[] {
|
|
"0",
|
|
"0.0",
|
|
"6.0",
|
|
"0.0",
|
|
"180.0",
|
|
"6.0",
|
|
"Volumes identical"});
|
|
table21.AddRow(new string[] {
|
|
"1",
|
|
"0.0",
|
|
"5.4",
|
|
"0.0",
|
|
"186.0",
|
|
"6.0",
|
|
"REF volume higher"});
|
|
table21.AddRow(new string[] {
|
|
"2",
|
|
"0.0",
|
|
"6.6",
|
|
"0.0",
|
|
"190.0",
|
|
"6.0",
|
|
"DUT volume higher"});
|
|
#line 206
|
|
testRunner.Given("Assign measurement values", ((string)(null)), table21, "Given ");
|
|
#line 213
|
|
testRunner.When("Calculate measurement results - ref volume input", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
|
|
#line hidden
|
|
TechTalk.SpecFlow.Table table22 = new TechTalk.SpecFlow.Table(new string[] {
|
|
"Test",
|
|
"DutVolumeCm",
|
|
"DutTimeS",
|
|
"DutFlowRateCmPh",
|
|
"RefFlowRateCmPh",
|
|
"ScaleFactorRefToDut",
|
|
"State",
|
|
"Comment"});
|
|
table22.AddRow(new string[] {
|
|
"0",
|
|
"6.0",
|
|
"180.0",
|
|
"120.0",
|
|
"null",
|
|
"1.0",
|
|
"Okay",
|
|
"Volumes identical"});
|
|
table22.AddRow(new string[] {
|
|
"1",
|
|
"5.4",
|
|
"186.0",
|
|
"104.516",
|
|
"null",
|
|
"1.1111111",
|
|
"Okay",
|
|
"REF volume higher"});
|
|
table22.AddRow(new string[] {
|
|
"2",
|
|
"6.6",
|
|
"190.0",
|
|
"125.053",
|
|
"null",
|
|
"0.9090909",
|
|
"Okay",
|
|
"DUT volume higher"});
|
|
#line 215
|
|
testRunner.Then("Test measurement results", ((string)(null)), table22, "Then ");
|
|
#line hidden
|
|
this.ScenarioCleanup();
|
|
}
|
|
|
|
[NUnit.Framework.TestAttribute()]
|
|
[NUnit.Framework.DescriptionAttribute("5.1_[SRS_TBF_COMMON_METRO_005]_DutToRefScaleFactorCalculation_VALID_Ref time and " +
|
|
"volume flying start stop")]
|
|
public virtual void _5_1_SRS_TBF_COMMON_METRO_005_DutToRefScaleFactorCalculation_VALID_RefTimeAndVolumeFlyingStartStop()
|
|
{
|
|
TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("5.1_[SRS_TBF_COMMON_METRO_005]_DutToRefScaleFactorCalculation_VALID_Ref time and " +
|
|
"volume flying start stop", null, ((string[])(null)));
|
|
#line 222
|
|
this.ScenarioInitialize(scenarioInfo);
|
|
this.ScenarioStart();
|
|
#line hidden
|
|
TechTalk.SpecFlow.Table table23 = new TechTalk.SpecFlow.Table(new string[] {
|
|
"Test",
|
|
"DutStartVolumeCm",
|
|
"DutStopVolumeCm",
|
|
"DutStartTimeS",
|
|
"DutStopTimeS",
|
|
"RefVolumeCm",
|
|
"RefTimeS",
|
|
"Comment"});
|
|
table23.AddRow(new string[] {
|
|
"0",
|
|
"0.0",
|
|
"6.2",
|
|
"0.0",
|
|
"186.0",
|
|
"6.0",
|
|
"180.0",
|
|
"Volumes identical"});
|
|
table23.AddRow(new string[] {
|
|
"1",
|
|
"0.0",
|
|
"5.58",
|
|
"0.0",
|
|
"186.0",
|
|
"6.0",
|
|
"180.0",
|
|
"REF volume higher"});
|
|
table23.AddRow(new string[] {
|
|
"2",
|
|
"0.0",
|
|
"6.82",
|
|
"0.0",
|
|
"186.0",
|
|
"6.0",
|
|
"180.0",
|
|
"DUT volume higher"});
|
|
#line 223
|
|
testRunner.Given("Assign measurement values", ((string)(null)), table23, "Given ");
|
|
#line 228
|
|
testRunner.When("Calculate measurement results - full input", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
|
|
#line hidden
|
|
TechTalk.SpecFlow.Table table24 = new TechTalk.SpecFlow.Table(new string[] {
|
|
"Test",
|
|
"DutVolumeCm",
|
|
"DutTimeS",
|
|
"DutFlowRateCmPh",
|
|
"CorrDutVolumeCm",
|
|
"RefFlowRateCmPh",
|
|
"ScaleFactorRefToDut",
|
|
"State",
|
|
"Comment"});
|
|
table24.AddRow(new string[] {
|
|
"0",
|
|
"6.2",
|
|
"186.0",
|
|
"120.0",
|
|
"6.0",
|
|
"120.0",
|
|
"1.0",
|
|
"Okay",
|
|
"Volumes identical"});
|
|
table24.AddRow(new string[] {
|
|
"1",
|
|
"5.58",
|
|
"186.0",
|
|
"108.0",
|
|
"5.4",
|
|
"120.0",
|
|
"1.1111111",
|
|
"Okay",
|
|
"REF volume higher"});
|
|
table24.AddRow(new string[] {
|
|
"2",
|
|
"6.82",
|
|
"186.0",
|
|
"132.0",
|
|
"6.6",
|
|
"120.0",
|
|
"0.9090909",
|
|
"Okay",
|
|
"DUT volume higher"});
|
|
#line 230
|
|
testRunner.Then("Test measurement results", ((string)(null)), table24, "Then ");
|
|
#line hidden
|
|
this.ScenarioCleanup();
|
|
}
|
|
|
|
[NUnit.Framework.TestAttribute()]
|
|
[NUnit.Framework.DescriptionAttribute("5.2_[SRS_TBF_COMMON_METRO_005]_DutToRefScaleFactorCalculation_INVALID_Ref volume")]
|
|
public virtual void _5_2_SRS_TBF_COMMON_METRO_005_DutToRefScaleFactorCalculation_INVALID_RefVolume()
|
|
{
|
|
TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("5.2_[SRS_TBF_COMMON_METRO_005]_DutToRefScaleFactorCalculation_INVALID_Ref volume", null, ((string[])(null)));
|
|
#line 237
|
|
this.ScenarioInitialize(scenarioInfo);
|
|
this.ScenarioStart();
|
|
#line hidden
|
|
TechTalk.SpecFlow.Table table25 = new TechTalk.SpecFlow.Table(new string[] {
|
|
"Test",
|
|
"DutStartVolumeCm",
|
|
"DutStopVolumeCm",
|
|
"DutStartTimeS",
|
|
"DutStopTimeS",
|
|
"RefVolumeCm",
|
|
"Comment"});
|
|
table25.AddRow(new string[] {
|
|
"0",
|
|
"0.0",
|
|
"6.0",
|
|
"0.0",
|
|
"180.0",
|
|
"null",
|
|
"REF volume null"});
|
|
table25.AddRow(new string[] {
|
|
"1",
|
|
"0.0",
|
|
"6.0",
|
|
"0.0",
|
|
"180.0",
|
|
"0.0",
|
|
"REF volume zero"});
|
|
#line 238
|
|
testRunner.Given("Assign measurement values", ((string)(null)), table25, "Given ");
|
|
#line 244
|
|
testRunner.When("Calculate measurement results - ref volume input", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
|
|
#line hidden
|
|
TechTalk.SpecFlow.Table table26 = new TechTalk.SpecFlow.Table(new string[] {
|
|
"Test",
|
|
"DutVolumeCm",
|
|
"DutTimeS",
|
|
"DutFlowRateCmPh",
|
|
"RefFlowRateCmPh",
|
|
"ScaleFactorRefToDut",
|
|
"State",
|
|
"Comment"});
|
|
table26.AddRow(new string[] {
|
|
"0",
|
|
"6.0",
|
|
"180.0",
|
|
"120.0",
|
|
"null",
|
|
"null",
|
|
"Okay",
|
|
"REF volume null"});
|
|
table26.AddRow(new string[] {
|
|
"1",
|
|
"6.0",
|
|
"180.0",
|
|
"120.0",
|
|
"null",
|
|
"null",
|
|
"ZeroRefVolume",
|
|
"REF volume zero"});
|
|
#line 247
|
|
testRunner.Then("Test measurement results", ((string)(null)), table26, "Then ");
|
|
#line hidden
|
|
this.ScenarioCleanup();
|
|
}
|
|
|
|
[NUnit.Framework.TestAttribute()]
|
|
[NUnit.Framework.DescriptionAttribute("6.0_[SRS_TBF_COMMON_METRO_006]_DutFromRefDeviationCalculation_VALID_Ref time and " +
|
|
"volume flying start stop")]
|
|
public virtual void _6_0_SRS_TBF_COMMON_METRO_006_DutFromRefDeviationCalculation_VALID_RefTimeAndVolumeFlyingStartStop()
|
|
{
|
|
TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("6.0_[SRS_TBF_COMMON_METRO_006]_DutFromRefDeviationCalculation_VALID_Ref time and " +
|
|
"volume flying start stop", null, ((string[])(null)));
|
|
#line 253
|
|
this.ScenarioInitialize(scenarioInfo);
|
|
this.ScenarioStart();
|
|
#line hidden
|
|
TechTalk.SpecFlow.Table table27 = new TechTalk.SpecFlow.Table(new string[] {
|
|
"Test",
|
|
"DutStartVolumeCm",
|
|
"DutStopVolumeCm",
|
|
"DutStartTimeS",
|
|
"DutStopTimeS",
|
|
"RefVolumeCm",
|
|
"RefTimeS",
|
|
"Comment"});
|
|
table27.AddRow(new string[] {
|
|
"0",
|
|
"0.0",
|
|
"6.2",
|
|
"0.0",
|
|
"186.0",
|
|
"6.0",
|
|
"180.0",
|
|
"Volumes identical"});
|
|
table27.AddRow(new string[] {
|
|
"1",
|
|
"0.0",
|
|
"5.58",
|
|
"0.0",
|
|
"186.0",
|
|
"6.0",
|
|
"180.0",
|
|
"REF volume higher"});
|
|
table27.AddRow(new string[] {
|
|
"2",
|
|
"0.0",
|
|
"6.82",
|
|
"0.0",
|
|
"186.0",
|
|
"6.0",
|
|
"180.0",
|
|
"DUT volume higher"});
|
|
#line 254
|
|
testRunner.Given("Assign measurement values", ((string)(null)), table27, "Given ");
|
|
#line 259
|
|
testRunner.When("Calculate measurement results - full input", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
|
|
#line hidden
|
|
TechTalk.SpecFlow.Table table28 = new TechTalk.SpecFlow.Table(new string[] {
|
|
"Test",
|
|
"DutVolumeCm",
|
|
"DutTimeS",
|
|
"DutFlowRateCmPh",
|
|
"CorrDutVolumeCm",
|
|
"RefFlowRateCmPh",
|
|
"DeviationDutToRefRel",
|
|
"DeviationDutToRefPer",
|
|
"State",
|
|
"Comment"});
|
|
table28.AddRow(new string[] {
|
|
"0",
|
|
"6.2",
|
|
"186.0",
|
|
"120.0",
|
|
"6.0",
|
|
"120.0",
|
|
"0.0",
|
|
"0.0",
|
|
"Okay",
|
|
"Volumes identical"});
|
|
table28.AddRow(new string[] {
|
|
"1",
|
|
"5.58",
|
|
"186.0",
|
|
"108.0",
|
|
"5.4",
|
|
"120.0",
|
|
"-0.1",
|
|
"-10.0",
|
|
"Okay",
|
|
"REF volume higher"});
|
|
table28.AddRow(new string[] {
|
|
"2",
|
|
"6.82",
|
|
"186.0",
|
|
"132.0",
|
|
"6.6",
|
|
"120.0",
|
|
"0.1",
|
|
"10.0",
|
|
"Okay",
|
|
"DUT volume higher"});
|
|
#line 262
|
|
testRunner.Then("Test measurement results", ((string)(null)), table28, "Then ");
|
|
#line hidden
|
|
this.ScenarioCleanup();
|
|
}
|
|
|
|
[NUnit.Framework.TestAttribute()]
|
|
[NUnit.Framework.DescriptionAttribute("6.1_[SRS_TBF_COMMON_METRO_006]_DutFromRefDeviationCalculation_INVALID_Ref volume")]
|
|
public virtual void _6_1_SRS_TBF_COMMON_METRO_006_DutFromRefDeviationCalculation_INVALID_RefVolume()
|
|
{
|
|
TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("6.1_[SRS_TBF_COMMON_METRO_006]_DutFromRefDeviationCalculation_INVALID_Ref volume", null, ((string[])(null)));
|
|
#line 269
|
|
this.ScenarioInitialize(scenarioInfo);
|
|
this.ScenarioStart();
|
|
#line hidden
|
|
TechTalk.SpecFlow.Table table29 = new TechTalk.SpecFlow.Table(new string[] {
|
|
"Test",
|
|
"DutStartVolumeCm",
|
|
"DutStopVolumeCm",
|
|
"DutStartTimeS",
|
|
"DutStopTimeS",
|
|
"RefVolumeCm",
|
|
"Comment"});
|
|
table29.AddRow(new string[] {
|
|
"0",
|
|
"0.0",
|
|
"6.0",
|
|
"0.0",
|
|
"180.0",
|
|
"null",
|
|
"REF volume null"});
|
|
table29.AddRow(new string[] {
|
|
"1",
|
|
"0.0",
|
|
"6.0",
|
|
"0.0",
|
|
"180.0",
|
|
"0.0",
|
|
"REF volume zero"});
|
|
#line 270
|
|
testRunner.Given("Assign measurement values", ((string)(null)), table29, "Given ");
|
|
#line 274
|
|
testRunner.When("Calculate measurement results - full input", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
|
|
#line hidden
|
|
TechTalk.SpecFlow.Table table30 = new TechTalk.SpecFlow.Table(new string[] {
|
|
"Test",
|
|
"DutVolumeCm",
|
|
"DutTimeS",
|
|
"DutFlowRateCmPh",
|
|
"DeviationDutToRefRel",
|
|
"DeviationDutToRefPer",
|
|
"State",
|
|
"Comment"});
|
|
table30.AddRow(new string[] {
|
|
"0",
|
|
"6.0",
|
|
"180.0",
|
|
"120.0",
|
|
"null",
|
|
"null",
|
|
"Okay",
|
|
"REF volume null"});
|
|
table30.AddRow(new string[] {
|
|
"1",
|
|
"6.0",
|
|
"180.0",
|
|
"120.0",
|
|
"null",
|
|
"null",
|
|
"ZeroRefVolume",
|
|
"REF volume zero"});
|
|
#line 276
|
|
testRunner.Then("Test measurement results", ((string)(null)), table30, "Then ");
|
|
#line hidden
|
|
this.ScenarioCleanup();
|
|
}
|
|
|
|
[NUnit.Framework.TestAttribute()]
|
|
[NUnit.Framework.DescriptionAttribute("7.0_[SRS_TBF_COMMON_METRO_007]_ChannelAssignmentCheck_INVALID_channel input")]
|
|
public virtual void _7_0_SRS_TBF_COMMON_METRO_007_ChannelAssignmentCheck_INVALID_ChannelInput()
|
|
{
|
|
TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("7.0_[SRS_TBF_COMMON_METRO_007]_ChannelAssignmentCheck_INVALID_channel input", null, ((string[])(null)));
|
|
#line 282
|
|
this.ScenarioInitialize(scenarioInfo);
|
|
this.ScenarioStart();
|
|
#line hidden
|
|
TechTalk.SpecFlow.Table table31 = new TechTalk.SpecFlow.Table(new string[] {
|
|
"Test",
|
|
"StartChannel",
|
|
"EndChannel",
|
|
"RequiredChannel",
|
|
"Comment"});
|
|
table31.AddRow(new string[] {
|
|
"0",
|
|
"1",
|
|
"0",
|
|
"0",
|
|
"Records do not match"});
|
|
table31.AddRow(new string[] {
|
|
"1",
|
|
"0",
|
|
"1",
|
|
"0",
|
|
"Records do not match"});
|
|
table31.AddRow(new string[] {
|
|
"2",
|
|
"0",
|
|
"0",
|
|
"1",
|
|
"Wrong channel required"});
|
|
#line 283
|
|
testRunner.Given("Assign measurement values", ((string)(null)), table31, "Given ");
|
|
#line 288
|
|
testRunner.When("Calculate measurement results - channel input", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
|
|
#line hidden
|
|
TechTalk.SpecFlow.Table table32 = new TechTalk.SpecFlow.Table(new string[] {
|
|
"Test",
|
|
"State",
|
|
"Comment"});
|
|
table32.AddRow(new string[] {
|
|
"0",
|
|
"WrongChannel",
|
|
"Records do not match"});
|
|
table32.AddRow(new string[] {
|
|
"1",
|
|
"WrongChannel",
|
|
"Records do not match"});
|
|
table32.AddRow(new string[] {
|
|
"2",
|
|
"WrongChannel",
|
|
"Wrong channel required"});
|
|
#line 290
|
|
testRunner.Then("Test measurement results", ((string)(null)), table32, "Then ");
|
|
#line hidden
|
|
this.ScenarioCleanup();
|
|
}
|
|
}
|
|
}
|
|
#pragma warning restore
|
|
#endregion
|