public void MWArray_ToSingleItem_ArgumentException_Test()
        {
            Assert.That(() => MWArrayExtensions.ToSingleItem <string>(null), Throws.ArgumentNullException);
            Assert.That(() => MWArrayExtensions.ToSingleItem <double>(MWCellArray.Empty), Throws.ArgumentException);

            Assert.That(() => MWArrayExtensions.ToSingleItem <string>(null), Throws.ArgumentNullException);
            Assert.That(() => MWArrayExtensions.ToSingleItem <bool>(MWCellArray.Empty), Throws.ArgumentException);
        }
 public void MWArray_ToSingleItem_Double_to_String_Test(double item)
 {
     Assert.That(MWArrayExtensions.ToSingleItem <string>(new MWNumericArray(item)), Is.EqualTo(item.ToString()));
 }
 public void MWArray_ToSingleItem_Int_to_Double_Test(int item)
 {
     Assert.That(MWArrayExtensions.ToSingleItem <double>(new MWNumericArray(item)), Is.EqualTo((double)item));
 }
 public void MWArray_ToSingleItem_Int_to_Bool_Test(int item)
 {
     Assert.That(MWArrayExtensions.ToSingleItem <bool>(new MWNumericArray(item)), Is.EqualTo(item == 0 ? false : true));
 }
 public void MWArray_ToSingleItem_Empty_Array_ArgumentException_Test()
 {
     Assert.That(() => MWArrayExtensions.ToSingleItem <bool>(new MWNumericArray()), Throws.ArgumentException);
 }
 public void MWArray_ToSingleItem_Bool_to_String_Test(bool item)
 {
     Assert.That(MWArrayExtensions.ToSingleItem <string>(new MWLogicalArray(item)), Is.EqualTo(Convert.ToString(item)));
 }
 public void MWArray_ToSingleItem_Bool_to_Double_Test(bool item)
 {
     Assert.That(MWArrayExtensions.ToSingleItem <double>(new MWLogicalArray(item)), Is.EqualTo(Convert.ToDouble(item)));
 }
 public void MWArray_ToSingleItem_Bool_to_Int_Test(bool item)
 {
     Assert.That(MWArrayExtensions.ToSingleItem <int>(new MWLogicalArray(item)), Is.EqualTo(Convert.ToInt32(item)));
 }
 public void MWArray_ToSingleItem_Double_to_Bool_Test(double item)
 {
     Assert.That(MWArrayExtensions.ToSingleItem <bool>(new MWNumericArray(item)), Is.EqualTo(Convert.ToBoolean(item)));
 }
 public void MWArray_ToSingleItem_Double_to_Int_Test(double item)
 {
     Assert.That(MWArrayExtensions.ToSingleItem <int>(new MWNumericArray(item)), Is.EqualTo(Convert.ToInt32(item)));
 }