public void DocumentOptionsExtensionsClass_ToDocumentOptionsModelMethod_ThrowsArgumentNullException_IfParameterIsNull() { DocumentOptions testObject = null; _ = testObject.ToDocumentOptionsModel(); Assert.Fail(); }
public void DocumentOptionsExtensionsClass_ToDocumentOptionsModelMethod_SetsGraphEditStylePropertyToCorrectValue_IfArgumentGraphEditStylePropertyEqualsPreserveSectionTimes() { DocumentOptions testObject = new DocumentOptions { GraphEditStyle = GraphEditStyle.PreserveSectionTimes }; DocumentOptionsModel testOutput = testObject.ToDocumentOptionsModel(); Assert.AreEqual("PreserveSectionTimes", testOutput.GraphEditStyle); }
public void DocumentOptionsExtensionsClass_ToDocumentOptionsModelMethod_ThrowsArgumentNullExceptionWithCorrectParamNameProperty_IfParameterIsNull() { DocumentOptions testObject = null; try { _ = testObject.ToDocumentOptionsModel(); Assert.Fail(); } catch (ArgumentNullException ex) { Assert.AreEqual("options", ex.ParamName); } }