//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test void shouldProvideDirectIntArrayAsPublic() internal virtual void ShouldProvideDirectIntArrayAsPublic() { int[] inStore = new int[] { 1 }; Value value = Values.IntArray(inStore); object asObject = value.AsObjectCopy(); assertNotNull(asObject, "should return int[]"); int[] arr = ( int[] )asObject; assertTrue(Arrays.Equals(inStore, arr), "should have same values"); arr[0] = -1; assertFalse(Arrays.Equals(inStore, arr), "should not modify inStore array"); assertTrue(Arrays.Equals(inStore, ( int[] )value.AsObjectCopy()), "should still generate inStore array"); }
public static Test ShouldNotMatch(int[] propertyValue, object value) { return(new Test(Values.IntArray(propertyValue), value, false)); }
private static Test ShouldMatch(int[] propertyValue, object value) { return(new Test(Values.IntArray(propertyValue), value, true)); }