public void ConvertArrayToParamsOneParam_IncorectArray_False(string[] inner) { uint minlenth = 1; uint maxlenth = 2; uint num; InnerDataValidator parser = new InnerDataValidator(minlenth, maxlenth); bool result = parser.ConvertArrayToParams(inner, out num); Assert.IsFalse(result); }
public void ConvertArrayToParamsOneParam_ValidData_True(string[] inner, uint expected) { uint minlenth = 1; uint maxlenth = 2; uint num; InnerDataValidator parser = new InnerDataValidator(minlenth, maxlenth); bool result = parser.ConvertArrayToParams(inner, out num); Assert.IsTrue(result); Assert.AreEqual(num, expected); }
public void ConvertArrayToParams_NullReferense_False() { string[] arr = null; double envelope1Side1; double envelope1Side2; double envelope2Side1; double envelope2Side2; bool result = _dataValidator.ConvertArrayToParams(arr, out envelope1Side1, out envelope1Side2, out envelope2Side1, out envelope2Side2); Assert.IsFalse(result); }