コード例 #1
0
        public void Max_nuint(Double expected, UInt32[] values)
        {
            nuint[] vals = null;
            if (values is not null)
            {
                vals = new nuint[values.Length];
                for (nint i = 0; i < values.Length; i++)
                {
                    vals[i] = (nuint)values[i];
                }
            }
            BoundedArray <nuint> array = values is not null ? new BoundedArray <nuint>(vals) : null;

            Assert.Equal(expected, array.Max());
        }
コード例 #2
0
        public void Max_UInt16(Single expected, UInt16[] values)
        {
            BoundedArray <UInt16> array = values is not null ? new BoundedArray <UInt16>(values) : null;

            Assert.Equal(expected, array.Max());
        }
コード例 #3
0
        public void Max_Byte(Single expected, Byte[] values)
        {
            BoundedArray <Byte> array = values is not null ? new BoundedArray <Byte>(values) : null;

            Assert.Equal(expected, array.Max());
        }
コード例 #4
0
        public void Max_Double(Double expected, Double[] values)
        {
            BoundedArray <Double> array = values is not null ? new BoundedArray <Double>(values) : null;

            Assert.Equal(expected, array.Max());
        }
コード例 #5
0
        public void Max_UInt64(Double expected, UInt64[] values)
        {
            BoundedArray <UInt64> array = values is not null ? new BoundedArray <UInt64>(values) : null;

            Assert.Equal(expected, array.Max());
        }
コード例 #6
0
        public void Max_Int32(Double expected, Int32[] values)
        {
            BoundedArray <Int32> array = values is not null ? new BoundedArray <Int32>(values) : null;

            Assert.Equal(expected, array.Max());
        }