示例#1
0
        public void ReturnNullWhenExpected()
        {
            var target = new StubServiceProvider(null);
            var result = target.GetService <IRasApi32>();

            Assert.IsNull(result);
        }
示例#2
0
        public void RetrievesTheObjectForTheGenericTypeSpecified()
        {
            var result = new Mock <IRasApi32>();

            var target = new StubServiceProvider(result.Object);
            var actual = target.GetService <IRasApi32>();

            Assert.AreEqual(result.Object, actual);
        }