-
-
Notifications
You must be signed in to change notification settings - Fork 810
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test project for visualizer added. ILMerge updated
git-svn-id: http://moq.googlecode.com/svn/trunk@604 b33fba48-7441-0410-8d5c-f397f7ceaa6c
- Loading branch information
marianoor
committed
Jul 30, 2009
1 parent
07aad31
commit df4bffc
Showing
24 changed files
with
244 additions
and
90 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
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
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
Binary file not shown.
Binary file not shown.
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,43 @@ | ||
using System.ComponentModel; | ||
using Xunit; | ||
using System.Linq; | ||
using System; | ||
|
||
namespace Moq.Visualizer.Tests | ||
{ | ||
public class MockContextViewModelFixture | ||
{ | ||
[Fact] | ||
public void CtorSetsBehavior() | ||
{ | ||
var target = new MockContextViewModel(new Mock<IComponent>(MockBehavior.Strict)); | ||
|
||
Assert.Equal(MockBehavior.Strict, target.Behavior); | ||
} | ||
|
||
[Fact] | ||
public void CtorSetsCallBase() | ||
{ | ||
var target = new MockContextViewModel(new Mock<IComponent> { CallBase = false }); | ||
|
||
Assert.Equal(false, target.CallBase); | ||
} | ||
|
||
[Fact] | ||
public void CtorSetsDefaultValue() | ||
{ | ||
var target = new MockContextViewModel(new Mock<IComponent> { DefaultValue = DefaultValue.Empty }); | ||
|
||
Assert.Equal(DefaultValue.Empty, target.DefaultValue); | ||
} | ||
|
||
[Fact] | ||
public void AddMockViewModelToMocks() | ||
{ | ||
var target = new MockContextViewModel(new Mock<IComponent>()); | ||
|
||
Assert.Equal(1, target.Mocks.Count()); | ||
Assert.NotNull(target.Mocks.ElementAt(0)); | ||
} | ||
} | ||
} |
Oops, something went wrong.