public void ReturnNullWhenExpected() { var target = new StubServiceProvider(null); var result = target.GetService <IRasApi32>(); Assert.IsNull(result); }
public void RetrievesTheObjectForTheGenericTypeSpecified() { var result = new Mock <IRasApi32>(); var target = new StubServiceProvider(result.Object); var actual = target.GetService <IRasApi32>(); Assert.AreEqual(result.Object, actual); }