public
Description: Extremely simplistic mocking library to help those new to TDD not have to focus on their mocking library.
Homepage:
Clone URL: git://github.com/jcbozonier/CrutchMocks.git
CrutchMocks / MiniMock / TestProject / When_instantiating_an_empty_interface.cs
100644 30 lines (24 sloc) 0.554 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// ReSharper disable InconsistentNaming
using MiniMock.Mocking;
using NUnit.Framework;
 
namespace TestProject
{
[TestFixture]
    public class When_instantiating_an_empty_interface
    {
        private object MockedObject;
 
[Test]
        public void It_should_return_an_object_of_the_same_type()
        {
            Assert.That(MockedObject is IFoo);
        }
 
[SetUp]
        public void Setup()
        {
            MockedObject = Mockery.Mock<IFoo>();
        }
 
        public interface IFoo
        {
 
        }
    }
}