Index: Riskeer/Integration/src/Riskeer.Integration.Plugin/RiskeerPlugin.cs =================================================================== diff -u -rc6accdd24151d96ad6fc2ab90d022d3d1c088e45 -r42ff9d788c613daf3911f0065566d76506c45ca8 --- Riskeer/Integration/src/Riskeer.Integration.Plugin/RiskeerPlugin.cs (.../RiskeerPlugin.cs) (revision c6accdd24151d96ad6fc2ab90d022d3d1c088e45) +++ Riskeer/Integration/src/Riskeer.Integration.Plugin/RiskeerPlugin.cs (.../RiskeerPlugin.cs) (revision 42ff9d788c613daf3911f0065566d76506c45ca8) @@ -588,7 +588,7 @@ Name = context => RiskeerCommonFormsResources.AssemblyResult_DisplayName, Extension = Resources.AssemblyResult_file_filter_Extension, CreateFileExporter = (context, filePath) => new AssemblyExporter(context.WrappedData, filePath), - IsEnabled = context => false, + IsEnabled = context => HasGeometry(context.WrappedData.ReferenceLine), GetExportPath = () => ExportHelper.GetFilePath(GetInquiryHelper(), new FileFilterGenerator(Resources.AssemblyResult_file_filter_Extension, RiskeerCommonFormsResources.AssemblyResult_DisplayName)) }; Index: Riskeer/Integration/test/Riskeer.Integration.Plugin.Test/ExportInfos/AssemblyResultsContextExportInfoTest.cs =================================================================== diff -u -r9bde7cc68851c56f5c9824141cb7186028fcdf7c -r42ff9d788c613daf3911f0065566d76506c45ca8 --- Riskeer/Integration/test/Riskeer.Integration.Plugin.Test/ExportInfos/AssemblyResultsContextExportInfoTest.cs (.../AssemblyResultsContextExportInfoTest.cs) (revision 9bde7cc68851c56f5c9824141cb7186028fcdf7c) +++ Riskeer/Integration/test/Riskeer.Integration.Plugin.Test/ExportInfos/AssemblyResultsContextExportInfoTest.cs (.../AssemblyResultsContextExportInfoTest.cs) (revision 42ff9d788c613daf3911f0065566d76506c45ca8) @@ -96,11 +96,31 @@ } [Test] - public void IsEnabled_Always_ReturnsFalse() + public void IsEnabled_ReferenceLineWithoutGeometry_ReturnsFalse() { // Setup var random = new Random(21); var assessmentSection = new AssessmentSection(random.NextEnumValue()); + var context = new AssemblyResultsContext(assessmentSection); + + using (var plugin = new RiskeerPlugin()) + { + ExportInfo info = GetExportInfo(plugin); + + // Call + bool isEnabled = info.IsEnabled(context); + + // Assert + Assert.IsFalse(isEnabled); + } + } + + [Test] + public void IsEnabled_ReferenceLineWithGeometry_ReturnsTrue() + { + // Setup + var random = new Random(21); + var assessmentSection = new AssessmentSection(random.NextEnumValue()); ReferenceLineTestFactory.SetReferenceLineGeometry(assessmentSection.ReferenceLine); var context = new AssemblyResultsContext(assessmentSection); @@ -113,7 +133,7 @@ bool isEnabled = info.IsEnabled(context); // Assert - Assert.IsFalse(isEnabled); + Assert.IsTrue(isEnabled); } }