/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
- using System;
- using Bifrost.Fakes.Events;
- using Machine.Specifications;
-
- namespace Bifrost.Specs.Events.for_Event
- {
- public class when_comparing_events_without_properties_and_different_ids
- {
- static SimpleEvent first_event;
- static SimpleEvent second_event;
- static bool is_equal;
-
- Establish context = () =>
- {
- first_event = new SimpleEvent(Guid.NewGuid());
- second_event = new SimpleEvent(Guid.NewGuid());
- };
-
- Because of = () => is_equal = first_event.Equals(second_event);
-
- It should_be_considered_equal = () => is_equal.ShouldBeTrue();
- }
- }