public void TestParseListFileData_Success() { double[][] data; Assert.IsTrue(TimeTableForm.TryParseListFileData("15.5;16.75;1.25;40\n16.75; 18.75; 2; 64", out data)); Assert.AreEqual(2, data.Length); Assert.AreEqual(18.75, data[1][1]); }
public void TestParseListFileData_Invalid() { double[][] data; Assert.IsFalse(TimeTableForm.TryParseListFileData("15.5;16;1.25;40\nd", out data)); }