public void get_Size_should_be_callable_indirectly() { using (new IndirectionsContext()) { // Arrange PULIntPtr.SizeGet().Body = () => 42; // Act var actual = ULIntPtr.Size; // Assert Assert.AreEqual(42, actual); } }
public void Constructor_should_be_callable_indirectly() { using (new IndirectionsContext()) { // Arrange PULIntPtr.ConstructorInt64().Body = (ref ULIntPtr @this, long value) => @this = new ULIntPtr(42); // Act var actual = new ULIntPtr(2147483648L); // Assert Assert.AreEqual(42, actual.ToInt32()); } }