public void GetTypeForObject_NullValue_ThrowsArgumentNullException() { var context = new SubReflectionContext(); AssertExtensions.Throws <ArgumentNullException>("value", () => context.GetTypeForObject(null)); }
public void GetTypeForObject_Invoke_ReturnsExpected() { var context = new SubReflectionContext(); Assert.Equal(typeof(string).GetTypeInfo(), context.GetTypeForObject(1)); }