示例#1
0
 public async Task TcxStripHeartRate()
 {
     using (var input = await TestFileHelper.OpenForReadAsync(_fileName))
     {
         var stripper = new TcxStripper();
         using (var output = await TestFileHelper.OpenForWriteAsync(GetStrippedFileName(_fileName, "_stripped_hr")))
         {
             stripper.Strip(input, output, StripOptions.HeartRate);
             Assert.True(output.Length > 0);
         }
     }
 }
示例#2
0
        public async Task TcxCopy()
        {
            using (var input = await TestFileHelper.OpenForReadAsync(_fileName))
            {
                var stripper = new TcxStripper();
                using (var output = await TestFileHelper.OpenForWriteAsync(GetStrippedFileName(_fileName)))
                {
                    stripper.Strip(input, output, StripOptions.None);
                    output.Seek(0, SeekOrigin.Begin);

                    var doc = XElement.Load(output);
                    Assert.IsTrue(doc.Nodes().Any());
                }
            }
        }