Piscal processing work
This commit is contained in:
@@ -61,7 +61,7 @@ namespace LeafWeb.Web.Tests.ViewModels.ResultStatus
|
||||
public void CanConstructFromLeafInputFile_Error()
|
||||
{
|
||||
var leafInput = GetLeafInput();
|
||||
leafInput.CurrentStatus = LeafInputStatusType.Error;
|
||||
leafInput.CurrentStatus = LeafInputStatusType.Exception;
|
||||
leafInput.StatusHistory = new []
|
||||
{
|
||||
new LeafInputStatus
|
||||
@@ -69,12 +69,12 @@ namespace LeafWeb.Web.Tests.ViewModels.ResultStatus
|
||||
DateTime = DateTime.Today,
|
||||
LeafInput = leafInput,
|
||||
Description = "My Error",
|
||||
Status = LeafInputStatusType.Error
|
||||
Status = LeafInputStatusType.Exception
|
||||
}
|
||||
};
|
||||
var viewModel = new ResultStatusViewModel(leafInput);
|
||||
|
||||
Assert.That(viewModel.CurrentStatus, Is.EqualTo(LeafInputStatusType.Error.ToString()));
|
||||
Assert.That(viewModel.CurrentStatus, Is.EqualTo(LeafInputStatusType.Exception.ToString()));
|
||||
Assert.That(viewModel.ErrorMessages[0], Is.EqualTo(leafInput.StatusHistory.First().Description));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user