public void Test_ReadOnlyFile() { string path = @"..\..\Store\ClaimsReserving.txt"; string f_path = ClaimReserving.ReadOnlyFile(path); Assert.AreEqual(path, f_path); }
public void Test_WriteOutputToFile() { List <string> claimResult = new List <string>(); claimResult.Add("1990, 4"); claimResult.Add("Comp, 0, 0, 0, 0, 0, 0, 0, 110, 280, 200"); claimResult.Add("Non-Comp, 45.2, 110, 110, 147, 50, 125, 150, 55, 140, 100"); ClaimReserving.WriteOutputToFile(claimResult); string path = @"..\..\Store\Outputfile.txt"; Assert.IsTrue(File.Exists(path)); }
public void Test_GetValuesFromFile() { string path = @"..\..\Store\ClaimsReserving.txt"; List <string> claimResult = new List <string>(); claimResult.Add("1990, 4"); claimResult.Add("Comp, 0, 0, 0, 0, 0, 0, 0, 110, 280, 200"); claimResult.Add("Non-Comp, 45.2, 110, 110, 147, 50, 125, 150, 55, 140, 100"); List <string> result = ClaimReserving.GetValuesFromFile(path); result.ForEach(o => Assert.IsTrue(result.Contains(o))); }