/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
- using System;
- using Bifrost.Execution;
- using Machine.Specifications;
-
- namespace Bifrost.Specs.Execution.for_TypeDiscoverer
- {
- [Subject(typeof(TypeDiscoverer))]
- public class when_finding_types_with_only_one_implementation : given.a_type_discoverer
- {
- static Type typeFound;
- Because we_find_single = () => typeFound = TypeDiscoverer.FindSingle<ISingle>();
-
- It should_not_return_null = () => typeFound.ShouldNotBeNull();
- It should_return_correct_implementation_when = () => typeFound.ShouldEqual(typeof (Single));
- }
- }