예제 #1
0
 public void ItContainsListOfDestinations()
 {
     using (var stream = RessourceHelper.GetRessource("WalkupScanDestinations.xml"))
     {
         var walkupScanDestinations = WalkupScanDestinations.CreateFromStream(stream);
         Assert.Equal(1, walkupScanDestinations.WalkupScanDestination.Count);
     }
 }
예제 #2
0
 public void SampleContainsAKnownDestinationName()
 {
     using (var stream = RessourceHelper.GetRessource("WalkupScanDestinations.xml"))
     {
         var walkupScanDestinations = WalkupScanDestinations.CreateFromStream(stream);
         Assert.True(walkupScanDestinations.WalkupScanDestination.Any(x => x.Name == "DESKTOP-JI67N1P"));
     }
 }
예제 #3
0
 public static string GetRessourceAsString(string ressourceName)
 {
     using (var stream = RessourceHelper.GetRessource(ressourceName))
         using (var streamReader = new StreamReader(stream))
         {
             return(streamReader.ReadToEnd());
         }
 }