public void PlainTextTableCellClass_DrawContentsAtMethod_ThrowsArgumentNullException_IfFirstParameterIsNull() { PlainTextTableCell testObject = GetTestObject(); double testParam1 = _rnd.NextDouble() * 1000; double testParam2 = _rnd.NextDouble() * 1000; testObject.DrawContentsAt(null, testParam1, testParam2); Assert.Fail(); }
public void PlainTextTableCellClass_DrawContentsAtMethod_ThrowsArgumentNullExceptionWithCorrectParamNameProperty_IfFirstParameterIsNull() { PlainTextTableCell testObject = GetTestObject(); double testParam1 = _rnd.NextDouble() * 1000; double testParam2 = _rnd.NextDouble() * 1000; try { testObject.DrawContentsAt(null, testParam1, testParam2); Assert.Fail(); } catch (ArgumentNullException ex) { Assert.AreEqual("context", ex.ParamName); } }