PageRenderTime 116ms CodeModel.GetById 12ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 1ms

/Rhino.Etl.Tests/InformationFixture.cs

http://github.com/ayende/rhino-etl
C# | 30 lines | 27 code | 3 blank | 0 comment | 0 complexity | 7fe7edae587068e667fa1436a1b6eb67 MD5 | raw file
 1namespace Rhino.Etl.Tests
 2{
 3    using Fibonacci;
 4    using Xunit;
 5
 6    
 7    public class InformationFixture 
 8    {
 9        [Fact]
10        public void WillReportRowProcessedUsage()
11        {
12            InMemoryFibonacci fibonacci = new InMemoryFibonacci();
13            fibonacci.Execute();
14            Assert.Equal(25, fibonacci.FibonacciOperation.Statistics.OutputtedRows);
15        }
16
17        [Fact]
18        public void WillReportWhenOpeartionEnded()
19        {
20            bool finished = false;
21            InMemoryFibonacci fibonacci = new InMemoryFibonacci();
22            fibonacci.FibonacciOperation.OnFinishedProcessing += delegate
23            {
24                finished = true;
25            };
26            fibonacci.Execute();
27            Assert.True(finished);
28        }
29    }
30}