PageRenderTime 44ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

/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
Possible License(s): CC-BY-SA-3.0
  1. using System;
  2. using Bifrost.Fakes.Events;
  3. using Machine.Specifications;
  4. namespace Bifrost.Specs.Events.for_Event
  5. {
  6. public class when_comparing_events_without_properties_and_different_ids
  7. {
  8. static SimpleEvent first_event;
  9. static SimpleEvent second_event;
  10. static bool is_equal;
  11. Establish context = () =>
  12. {
  13. first_event = new SimpleEvent(Guid.NewGuid());
  14. second_event = new SimpleEvent(Guid.NewGuid());
  15. };
  16. Because of = () => is_equal = first_event.Equals(second_event);
  17. It should_be_considered_equal = () => is_equal.ShouldBeTrue();
  18. }
  19. }