示例#1
0
        public void iDontKnowTest()
        {
            var i = new IDontKnow();

            Assert.AreEqual("2", i.iDontKnow(2));
            Assert.AreEqual("9900", i.iDontKnow(100));
            Assert.AreEqual("46440", i.iDontKnow(216));
            Assert.AreEqual("20306", i.iDontKnow(143));
            Assert.AreEqual("9999700002", i.iDontKnow(99999));
            Assert.AreEqual("152386680", i.iDontKnow(12345));
            Assert.AreEqual("999999997000000000", i.iDontKnow(999999999));
        }
 /// <summary>
 /// Get the service
 /// </summary>
 protected override void WhenIRun()
 {
     this._actual = this.Sut.GetService<IDontKnow>();
 }
示例#3
0
 public BT(IDontKnow dontKnow)
 => this.dontKnow = dontKnow;
示例#4
0
 }                                                   // !!
 public ValueSmsThing(IDontKnow value, SmsNumber sms)
 {
     Value = value;
     Sms   = sms;
 }
 /// <summary>
 /// Get the service
 /// </summary>
 protected override void WhenIRun()
 {
     this._actual = ServiceLocator.GetService<IDontKnow>();
 }