public void TrainModelClass_WriteXmlMethod_ThrowsArgumentNullException_IfParameterIsNull() { TrainModel testObject = new TrainModel(); testObject.WriteXml(null); Assert.Fail(); }
public void TrainModelClass_WriteXmlMethod_ThrowsArgumentNullExceptionWithCorrectParamNameProperty_IfParameterIsNull() { TrainModel testObject = new TrainModel(); try { testObject.WriteXml(null); Assert.Fail(); } catch (ArgumentNullException ex) { Assert.AreEqual("writer", ex.ParamName); } }