示例#1
0
        public void WhenX100_Should2(
            [Values(100)] double x)
        {
            var operation = new Log10(x);

            Assert.AreEqual(2, operation.Operate());
        }
示例#2
0
        public void WhenXNegative100_ShouldArgumentException(
            [Values(-100)] double x)
        {
            var operation = new Log10(x);

            Assert.Throws <ArgumentException>(() => { var result = operation.Operate(); });
        }