public void MWArray_GetFieldAsArray_Bool_Single_Input()
        {
            var  f     = "arrayfield";
            bool value = true;
            var  sa    = new MWStructArray(new int[] { 1 }, new string[] { f });
            var  na    = new MWLogicalArray(value);

            sa[f] = na;

            Assert.That(MWArrayExtensions.GetFieldAsArray <bool>(sa, f), Is.EquivalentTo(new bool[] { value }));
        }
        public void MWArray_GetFieldAsArray_Numeric_Single_Input()
        {
            var f     = "arrayfield";
            int value = 42;
            var sa    = new MWStructArray(new int[] { 1 }, new string[] { f });
            var na    = new MWNumericArray(value);

            sa[f] = na;

            Assert.That(MWArrayExtensions.GetFieldAsArray <double>(sa, f), Is.EquivalentTo(new int[] { value }));
        }
        public void MWArray_GetFieldAsArray_Bool_Input()
        {
            var   f     = "arrayfield";
            Array value = Enumerable.Range(0, 42).Select(i => i % 2 == 0).ToArray();
            var   sa    = new MWStructArray(new int[] { 1 }, new string[] { f });
            var   na    = new MWLogicalArray(value);

            sa[f] = na;

            Assert.That(MWArrayExtensions.GetFieldAsArray <bool>(sa, f), Is.EquivalentTo(value));
        }