PageRenderTime 49ms CodeModel.GetById 47ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/Source/Bifrost.Specs/Events/for_EventSource/when_checking_if_stateless_on_a_stateless_event_source.cs

#
C# | 15 lines | 12 code | 3 blank | 0 comment | 0 complexity | d6e24873f25a51ec343eb2e1873c03e4 MD5 | raw file
 1using Bifrost.Events;
 2using Machine.Specifications;
 3
 4namespace Bifrost.Specs.Events.for_EventSource
 5{
 6    [Subject(typeof(EventSourceExtensions))]
 7    public class when_checking_if_stateless_on_a_stateless_event_source : given.a_stateless_event_source
 8    {
 9        static bool is_stateless;
10
11        Because of = () => is_stateless = event_source.IsStateless();
12
13        It should_not_be_stateless = () => is_stateless.ShouldBeTrue();
14    }
15}