PageRenderTime 263ms CodeModel.GetById 120ms app.highlight 2ms RepoModel.GetById 139ms app.codeStats 0ms

/Rhino.Etl.Tests/Dsl/AggregationFixture.cs

http://github.com/ayende/rhino-etl
C# | 36 lines | 32 code | 4 blank | 0 comment | 0 complexity | b02e76c1c0a3cf0d57aab8e334e4be86 MD5 | raw file
 1namespace Rhino.Etl.Tests.Dsl
 2{
 3    using System;
 4    using System.Collections.Generic;
 5    using System.IO;
 6    using Aggregation;
 7    using Core;
 8    using Joins;
 9    using Xunit;
10    using Rhino.Etl.Core.Operations;
11    using Rhino.Etl.Dsl;
12
13    
14    public class AggregationFixture : BaseAggregationFixture
15    {
16        [Fact]
17        public void CanCompile()
18        {
19            EtlProcess process = CreateDslInstance("Dsl/Aggregate.boo");
20            Assert.NotNull(process);
21        }
22
23
24        [Fact]
25        public void CanPerformAggregationFromDsl()
26        {
27            EtlProcess process = CreateDslInstance("Dsl/Aggregate.boo");
28            process.Register(new GenericEnumerableOperation(rows));
29            ResultsToList operation = new ResultsToList();
30            process.RegisterLast(operation);
31            process.Execute();
32            Assert.Equal(1, operation.Results.Count);
33            Assert.Equal("milk, sugar, coffee", operation.Results[0]["result"]);
34        }
35    }
36}