public void StreamTest() { Stream stream = File.OpenRead("hotelrates.json"); Assert.IsTrue(HotelRatesExcelGenerator.CreateExcelFile(stream)); }
public void FileInfoTest() { FileInfo fileInfo = new FileInfo("hotelrates.json"); Assert.IsTrue(HotelRatesExcelGenerator.CreateExcelFile(fileInfo)); }
public void JObjectTest() { JObject jObject = JObject.Parse(File.ReadAllText("hotelrates.json")); Assert.IsTrue(HotelRatesExcelGenerator.CreateExcelFile(jObject)); }
public void StringTest() { var jsonString = File.ReadAllText("hotelrates.json"); Assert.IsTrue(HotelRatesExcelGenerator.CreateExcelFile(jsonString)); }