public void ToWorkExtensionsClass_ToWorkModelMethod_ThrowsArgumentNullException_IfParameterIsNull() { ToWork testObject = null; _ = testObject.ToToWorkModel(); Assert.Fail(); }
public void ToWorkExtensionsClass_ToToWorkModelMethod_ThrowsArgumentNullExceptionWithCorrectParamNameProperty_IfParameterIsNull() { ToWork testObject = null; try { _ = testObject.ToToWorkModel(); Assert.Fail(); } catch (ArgumentNullException ex) { Assert.AreEqual("data", ex.ParamName); } }