Ejemplo 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);
 }
Ejemplo n.º 2
0
 public void RemoteSourceOfData_NothingSent()
 {
     RemoteSourceOfData remoteSourceOfData = new RemoteSourceOfData();
     remoteSourceOfData.GetData(null);
 }
Ejemplo n.º 3
0
 public void RemoteSourceOfData_FileNotFound()
 {
     RemoteSourceOfData remoteSourceOfData = new RemoteSourceOfData();
     remoteSourceOfData.GetData(new RemoteRequest { FileName = @"Data\Test\F11\F11\F12\F12.xml" });
 }