Esempio n. 1
0
 public void RemoteSourceOfData_GetData_Ok()
 {
     RemoteSourceOfData remoteSourceOfData = new RemoteSourceOfData();
     var actualData = remoteSourceOfData.GetData(new RemoteRequest { FileName = @"Data\Test\F1\F11\F12\F12.xml" });
     Assert.IsNotNull(actualData);
     FileInfo fileInfo = new FileInfo(@"Data\Test\F1\F11\F12\F12.xml");
     Assert.AreEqual(fileInfo.Length,actualData.Data.Length);
 }
Esempio n. 2
0
 public void RemoteSourceOfData_NothingSent()
 {
     RemoteSourceOfData remoteSourceOfData = new RemoteSourceOfData();
     remoteSourceOfData.GetData(null);
 }
Esempio n. 3
0
 public void RemoteSourceOfData_FileNotFound()
 {
     RemoteSourceOfData remoteSourceOfData = new RemoteSourceOfData();
     remoteSourceOfData.GetData(new RemoteRequest { FileName = @"Data\Test\F11\F11\F12\F12.xml" });
 }