Exemple #1
0
        public void Expression_Test_Corner_Cases()
        {
            var sut = new ExpressionManager();

            sut.Initialize(new Dictionary <string, string>()
            {
            });


            var dt = GetTestDataTable();

            sut.EvaluateExpressions(dt);

            dt.Columns.Count.Should().Be(4);

            var    sut2    = new ExpressionManager();
            Action action1 = () => { sut.Dispose(); };  // Initialized
            Action action2 = () => { sut2.Dispose(); }; // Not Initialized

            action1.ShouldNotThrow();
            action2.ShouldNotThrow();
        }