public void Basic(string name) { string path = CreateFile(name, 120); using (FilterRequest req = new FilterRequest(path)) { IFilter filter = new TiltFilter(Math.PI / 4); filter.Convert(req); Assert.IsTrue(System.IO.File.Exists(req.Current.LocalPath), "Error: Did not create " + req.Current.LocalPath); Assert.IsTrue(new FileInfo(req.Current.LocalPath).Length > 0, "Error: " + req.Current.LocalPath + "is Zero length"); } }
public void Basic (string name) { string path = CreateFile (name, 120); using (FilterRequest req = new FilterRequest (path)) { IFilter filter = new TiltFilter (Math.PI / 4); filter.Convert (req); Assert.IsTrue (System.IO.File.Exists (req.Current.LocalPath), "Error: Did not create " + req.Current.LocalPath); Assert.IsTrue (new FileInfo (req.Current.LocalPath).Length > 0, "Error: " + req.Current.LocalPath + "is Zero length"); } }