public void ReadContent_BigContent() { FileStreamHelper f = new FileStreamHelper(); var fileStream = f.Object(); FileReadOnlyWrapper w = new FileReadOnlyWrapper("dummy.txt", fileStream); string bigInput = new String((char)65, 65536); bigInput += Environment.NewLine; f.WriteReadCheck(bigInput, bigInput, bigInput.Length); }
public void ReadContent_BasicReads_Umlaute() { FileStreamHelper f = new FileStreamHelper(); var fileStream = f.Object(); FileReadOnlyWrapper w = new FileReadOnlyWrapper("dummy.txt", fileStream); string input = "hello worldöäüÖÄÜß你好,世界\r\n"; f.WriteReadCheck(input, input); f.WriteReadCheck("\r\n", "\r\n"); f.WriteReadCheck("\n", "\n"); }
public void ReadContent_Read2Lines() { FileStreamHelper f = new FileStreamHelper(); var fileStream = f.Object(); FileReadOnlyWrapper w = new FileReadOnlyWrapper("dummy.txt", fileStream); string returnStringX = "h1\r\n"; string input = "\r\nh1\r\nhello world\r\n"; f.WriteReadCheck(input, "\r\n"); input = "h1\r\nhello world"; f.WriteReadCheck(input, returnStringX); }