コード例 #1
0
        public void DoubleFunctionNegativeInt10point7()
        {
            var sut    = new Int();
            var result = sut.Execute(new List <Accumulator> {
                new Accumulator(-10.7)
            });

            Assert.AreEqual(-11.0, result.ValueAsDouble());
        }
コード例 #2
0
        public void DoubleFunctionInt10point3()
        {
            var sut    = new Int();
            var result = sut.Execute(new List <Accumulator> {
                new Accumulator(10.3)
            });

            Assert.AreEqual(10.0, result.ValueAsDouble());
        }