コード例 #1
0
        public void Execute_WithPropertyFilter_Ran()
        {
            var embed   = new Engine();
            var filter  = new PropertyFilter("propertyName", "propertyValue");
            var result  = embed.Execute(ConfigFilePath, filter);
            var builder = new FlatResultBuilder();
            var agg     = builder.Execute(result);

            Assert.That(agg.Count, Is.EqualTo(1));
        }
コード例 #2
0
        public void Execute_WithNameFilter_Ran()
        {
            var embed   = new Engine();
            var filter  = new NBiNameFilter("All-rows is doing the job for numeric info");
            var result  = embed.Execute(ConfigFilePath, filter);
            var builder = new FlatResultBuilder();
            var agg     = builder.Execute(result);

            Assert.That(agg.Count, Is.EqualTo(1));
        }
コード例 #3
0
ファイル: EngineTest.cs プロジェクト: Seddryck/NBi.Data3Sixty
        public void Execute_WithImplementationIdentifierFilter_Ran()
        {
            var embed   = new Engine();
            var filter  = new IdentifierFilter("124.133");
            var result  = embed.Execute(@"Resources\SmallTestSuite.config", filter);
            var builder = new FlatResultBuilder();
            var agg     = builder.Execute(result);

            Assert.That(agg.Count, Is.EqualTo(1));
        }
コード例 #4
0
        public void Execute_FromConfigFile_Ran()
        {
            var embed   = new Engine();
            var result  = embed.Execute(ConfigFilePath);
            var builder = new FlatResultBuilder();
            var agg     = builder.Execute(result);

            Assert.That(agg.Count, Is.EqualTo(2));
            Assert.That(agg.Successes, Is.EqualTo(1));
        }
コード例 #5
0
        public void Execute_TestResult_ReturnAggregation()
        {
            var test = Mock.Of <ITest>(
                x => x.IsSuite == false &&
                x.TestName == new TestName()
            {
                FullName = "TestSuite.Test"
            } &&
                x.Properties == new Dictionary <string, object>()
            {
                { "Identifier", "122" }
            });

            var raw = new TestResult(test);

            raw.SetResult(ResultState.Error, "My message", string.Empty);
            var builder = new FlatResultBuilder();
            var agg     = builder.Execute(raw);

            Assert.That(agg.Count, Is.EqualTo(1));
        }