GetLatest() public method

public GetLatest ( string uri, string filePath ) : void
uri string
filePath string
return void
コード例 #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);
        }
コード例 #2
0
 public void LatestWebGetterWithInvalidArgsExpectedDoesNothing()
 {
     var getter = new LatestWebGetter();
     getter.GetLatest("myfake.uri", "hello world");
     Assert.IsTrue(true);
 }
コード例 #3
0
 public void LatestWebGetterExpectedRaisesInvoked()
 {
     var getter = new LatestWebGetter();
     getter.Invoked += (sender, args) => Assert.IsTrue(true);
     getter.GetLatest("myfake.uri", "hello world");
 }