GetLatest() public method

public GetLatest ( string uri, string filePath ) : void
uri string
filePath string
return void
Exemplo n.º 1
0
        public void LatestWebGetterWithValidArgsExpectedReplacesFileContent()
        {
            var path = Path.Combine(Path.GetTempPath(), string.Concat(Guid.NewGuid().ToString(), ".txt"));

            //var path = Path.Combine(_testDir, Path.GetRandomFileName());

            if(File.Exists(path))
            {
                File.Delete(path);
            }

            Assert.IsFalse(File.Exists(path));

            var getter = new LatestWebGetter();
            getter.GetLatest("http://rsaklfdevstats:9000/", path);
        }
 public void LatestWebGetterWithInvalidArgsExpectedDoesNothing()
 {
     var getter = new LatestWebGetter();
     getter.GetLatest("myfake.uri", "hello world");
     Assert.IsTrue(true);
 }
 public void LatestWebGetterExpectedRaisesInvoked()
 {
     var getter = new LatestWebGetter();
     getter.Invoked += (sender, args) => Assert.IsTrue(true);
     getter.GetLatest("myfake.uri", "hello world");
 }