コード例 #1
0
        public void Execute_Null_NullDropped()
        {
            var list = new List <object>()
            {
                1, 3, 5, null
            };
            var strategy = new FailureMissingValueStrategy(ColumnType.Numeric);

            Assert.Throws <ArgumentException>(() => strategy.Execute(list));
        }
コード例 #2
0
        public void Execute_NoSpecialValue_NoException()
        {
            var list = new List <object>()
            {
                1, 3, 5
            };
            var strategy = new FailureMissingValueStrategy(ColumnType.Numeric);

            Assert.DoesNotThrow(() => strategy.Execute(list));
        }
コード例 #3
0
        public void Execute_NoSpecialValue_SameValues()
        {
            var list = new List <object>()
            {
                1, 3, 5
            };
            var strategy = new FailureMissingValueStrategy(ColumnType.Numeric);
            var result   = strategy.Execute(list);

            Assert.That(result, Has.Member(1));
            Assert.That(result, Has.Member(3));
            Assert.That(result, Has.Member(5));
        }