[TestMethod]
public void TestRemoveMember()
{
Information information = new Information
{
Stamp = "",
Colour = "",
FIO = "",
Number = "",
Service = "",
Time = new DateTime(0001, 01, 01)
};
Processing.data.Add(information);
int count = Processing.data.Count;
DataBaseManager.InsertMember(0);
DataBaseManager.RemoveMember(0);
Assert.AreEqual(count, Processing.data.Count);
}
string testString;
testString = webClient.DownloadString("адрес.pdf");
using (PdfReader pdfReader = new PdfReader(testString))
{
for (int page = 1; page <= pdfReader.NumberOfPages; page++)
{
ITextExtractionStrategy strategy = new SimpleTextExtractionStrategy();
string currentText = PdfTextExtractor.GetTextFromPage(pdfReader, page, strategy);
currentText = Encoding.UTF8.GetString(ASCIIEncoding.Convert(Encoding.Default, Encoding.UTF8,
Encoding.Default.GetBytes(currentText)));
text.Append(currentText);
}
}
получается System.NullReferenceException: "Ссылка на объект не указывает на экземпляр объекта."list было null."