fix: restore DOCX workbench runtime path
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
using DocxWorkbench.Core;
|
||||
|
||||
namespace DocxWorkbench.Tests;
|
||||
|
||||
public sealed class WorkbenchStateTests
|
||||
{
|
||||
[Fact]
|
||||
public void VerifyButton_DisabledBeforeBuild() { var state = new WorkbenchStateController(); Assert.False(state.CanValidate); }
|
||||
[Fact]
|
||||
public void VerifyButton_DisabledAfterBuildFailure() { var state = Ready(); state.BeginBuild(); state.BuildFailed(); Assert.False(state.CanValidate); Assert.False(state.CanOpenDocx); }
|
||||
[Fact]
|
||||
public void VerifyButton_EnabledAfterBuildSuccess() { var state = Ready(); state.BeginBuild(); state.BuildSucceeded(); Assert.True(state.CanValidate); Assert.True(state.CanOpenDocx); Assert.True(state.CanOpenPdf); }
|
||||
private static WorkbenchStateController Ready() { var state = new WorkbenchStateController(); state.InputsSelected(true); state.AnalysisCompleted(true, true, true); return state; }
|
||||
}
|
||||
Reference in New Issue
Block a user