예제 #1
0
        public void ValidateTest()
        {
            var table = new Table1D(new[] { 3.0, 4.0, 5.0 },
                                    new[] { 8.0, -7.5, 1.35 });

            table.Validate();
        }
예제 #2
0
        public void TableTooSmallNotValid()
        {
            Assert.Throws <ArgumentException>(() =>
            {
                var table = new Table1D(
                    new[] { 3.0, 4.0, 5.0 },
                    new[] { 8.0, -7.5 });

                table.Validate();
            });
        }