PageRenderTime 17ms CodeModel.GetById 12ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/Source/Bifrost.Specs/Execution/for_TypeDiscoverer/when_finding_types_with_only_one_implementation.cs

#
C# | 16 lines | 14 code | 2 blank | 0 comment | 0 complexity | fb37eaaff2bac242c4bf5aebf3bde85a MD5 | raw file
 1using System;
 2using Bifrost.Execution;
 3using Machine.Specifications;
 4
 5namespace Bifrost.Specs.Execution.for_TypeDiscoverer
 6{
 7	[Subject(typeof(TypeDiscoverer))]
 8	public class when_finding_types_with_only_one_implementation : given.a_type_discoverer
 9	{
10		static Type typeFound;
11		Because we_find_single = () => typeFound = TypeDiscoverer.FindSingle<ISingle>();
12
13		It should_not_return_null = () => typeFound.ShouldNotBeNull();
14		It should_return_correct_implementation_when = () => typeFound.ShouldEqual(typeof (Single));
15	}
16}