This repository has been archived by the owner on Dec 14, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
62 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
using NUnit.Framework; | ||
using Rhino.Mocks; | ||
using StreamCompanion.Contract; | ||
using StreamCompanion.Contract.ShellBase.Shell; | ||
using StreamCompanion.Contract.ShellBase.Uic.Step; | ||
using StreamCompanion.ShellViewModel; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace StreamCompanion.Tests.ShellViewModel | ||
{ | ||
[TestFixture] | ||
public class ShellViewModelBaseUnitTest | ||
{ | ||
private IController controller; | ||
private IStepUIC stepUICMock; | ||
private MainShellViewModel shellViewModelSUT; | ||
|
||
[SetUp] | ||
public void SetUp() | ||
{ | ||
controller = MockRepository.GenerateMock<IController>(); | ||
stepUICMock = MockRepository.GenerateMock<IStepUIC>(); | ||
shellViewModelSUT = new MainShellViewModel(controller, stepUICMock); | ||
} | ||
|
||
[Test] | ||
public void CanReturnTheCorrectSteps() | ||
{ | ||
Assert.AreEqual(stepUICMock, shellViewModelSUT.Steps[0]); | ||
} | ||
|
||
[Test] | ||
public void CanReturnTheCorrectSelectedItem() | ||
{ | ||
Assert.AreEqual(stepUICMock, shellViewModelSUT.SelectedItem); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...ontract/json/serialize/ISerializedRoot.cs → src/contract/json/IConverterRoot.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters