blob: 8ab43c6df5f2c646a9f4fec1a3eb8f310fe48fa9 (
plain)
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
31
32
|
using gorilla.utility;
using Machine.Specifications;
namespace specs.unit.utility
{
public class ConfigurationExtensionsSpecs
{
public interface IDbCommand {
void Execute();
}
public class when_configuring_an_item
{
It should_return_the_item_that_was_configured_when_completed = () => result.should_be_equal_to(item.Object);
Establish context = () =>
{
configuration = Create.an<Configuration<IDbCommand>>();
item = Create.an<IDbCommand>();
};
Because of = () =>
{
result = item.Object.and_configure_with(configuration.Object);
};
static Moq.Mock<Configuration<IDbCommand>> configuration;
static Moq.Mock<IDbCommand> item;
static IDbCommand result;
}
}
}
|