PageRenderTime 24ms CodeModel.GetById 15ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 1ms

/Source/Bifrost.Specs/Events/for_Event/when_comparing_events_without_properties_and_different_ids.cs

#
C# | 23 lines | 19 code | 4 blank | 0 comment | 0 complexity | a4c9980459d7e8814a0cd30ff1584886 MD5 | raw file
 1using System;
 2using Bifrost.Fakes.Events;
 3using Machine.Specifications;
 4
 5namespace Bifrost.Specs.Events.for_Event
 6{
 7    public class when_comparing_events_without_properties_and_different_ids
 8    {
 9        static SimpleEvent first_event;
10        static SimpleEvent second_event;
11        static bool is_equal;
12
13        Establish context = () =>
14                                {
15                                    first_event = new SimpleEvent(Guid.NewGuid());
16                                    second_event = new SimpleEvent(Guid.NewGuid());
17                                };
18
19        Because of = () => is_equal = first_event.Equals(second_event);
20
21        It should_be_considered_equal = () => is_equal.ShouldBeTrue();
22    }
23}