public void ShouldThrowExceptionInToQuantityArrayIfUnitsNotHomogenous() { var measurementList = new System.Collections.Generic.List<IMeasurement>() { new Measurement(1, "Hz"), new Measurement(1, "notHz") }; Assert.Throws(typeof(MeasurementIncompatibilityException), () => measurementList.ToBaseUnitsQuantityArray() ); }