public void HumanReadableEnumFactoryClass_GetPdfExportEngineMethod_ReturnsArrayContainingPdfExportEngineExternalValueWithCorrectNameProperty()
        {
            HumanReadableEnum <PdfExportEngine>[] testOutput = HumanReadableEnumFactory.GetPdfExportEngine();

            HumanReadableEnum <PdfExportEngine> item = testOutput.Single(e => e.Value == PdfExportEngine.External);

            Assert.AreEqual(Resources.HumanReadableEnum_PdfExportEngine_External, item.Name);
        }
Пример #2
0
 /// <summary>
 /// Default constructor.
 /// </summary>
 public DocumentExportOptionsEditForm()
 {
     InitializeComponent();
     cbPdfEngine.Items.AddRange(HumanReadableEnumFactory.GetPdfExportEngine());
 }
        public void HumanReadableEnumFactoryClass_GetPdfExportEngineMethod_ReturnsArrayOfLength2()
        {
            HumanReadableEnum <PdfExportEngine>[] testOutput = HumanReadableEnumFactory.GetPdfExportEngine();

            Assert.AreEqual(2, testOutput.Length);
        }