public void SignalboxExtensionsClass_ToSignalboxModelMethod_ThrowsArgumentNullException_IfParameterIsNull() { Signalbox testObject = null; _ = testObject.ToSignalboxModel(); Assert.Fail(); }
public void SignalboxExtensionsClass_ToSignalboxModelMethod_ThrowsArgumentNullExceptionWithCorrectParamNameProperty_IfParameterIsNull() { Signalbox testObject = null; try { _ = testObject.ToSignalboxModel(); Assert.Fail(); } catch (ArgumentNullException ex) { Assert.AreEqual("box", ex.ParamName); } }