public void Paramater_should_generate_code() { var pv = ParamaterValue.Create(123); var paramater = new Paramater("param", pv); paramater.GeneratorCode().Should().Be("param=123"); }
public void AddParameter(string name, string value, bool isOutput) { ParameterName.Add(name); ParamaterValue.Add(value); ParamDirection.Add(isOutput); arraySize++; }
private ParamaterList GetParamaterList() { var paramater1 = new Paramater("123", ParamaterValue.Create(123)); var paramater2 = new Paramater("456", ParamaterValue.Create(456)); var paramater3 = new Paramater("789", ParamaterValue.Create(789)); var paramList = new ParamaterList() { paramater1, paramater2, paramater3, }; return(paramList); }
[InlineData(new double[] { 123, 456, 7e-10 }, "new float[]{123F,456F,7E-10F}")] // int array public void ParamaterValue_should_generate_code_from <T>(T value, string expected) { var pv = ParamaterValue.Create(value); pv.GeneratorCode().Should().Be(expected); }