Пример #1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test void shouldProvideDirectDoubleArrayAsPublic()
        internal virtual void ShouldProvideDirectDoubleArrayAsPublic()
        {
            double[] inStore  = new double[] { 1 };
            Value    value    = Values.DoubleArray(inStore);
            object   asObject = value.AsObjectCopy();

            assertNotNull(asObject, "should return double[]");

            double[] arr = ( double[] )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, ( double[] )value.AsObjectCopy()), "should still generate inStore array");
        }