Permalink
Browse files

Remove when_serializing_a_commit_message tests, Commit and CommitAtte…

…mpt are not designed to be serializable.
  • Loading branch information...
1 parent 41ef9ae commit 6984eaefe97a75a04582c188ad6acf7488995bd8 @damianh damianh committed Sep 4, 2013
Showing with 0 additions and 64 deletions.
  1. +0 −64 src/NEventStore.Persistence.AcceptanceTests/SerializationTests.cs
View
64 src/NEventStore.Persistence.AcceptanceTests/SerializationTests.cs
@@ -132,70 +132,6 @@ public void should_deserialize_the_the_complex_types_within_the_event_messages()
}
}
- public class when_serializing_a_commit_message : SerializationConcern
- {
- private readonly CommitAttempt _message = Guid.NewGuid().ToString().BuildCommit();
- private CommitAttempt _deserialized;
- private byte[] _serialized;
-
- protected override void Context()
- {
- _serialized = Serializer.Serialize(_message);
- }
-
- protected override void Because()
- {
- _deserialized = Serializer.Deserialize<CommitAttempt>(_serialized);
- }
-
- [Fact]
- public void should_deserialize_a_commit_which_contains_the_same_StreamId_as_the_serialized_commit()
- {
- _deserialized.StreamId.ShouldBe(_message.StreamId);
- }
-
- [Fact]
- public void should_deserialize_a_commit_which_contains_the_same_CommitId_as_the_serialized_commit()
- {
- _deserialized.CommitId.ShouldBe(_message.CommitId);
- }
-
- [Fact]
- public void should_deserialize_a_commit_which_contains_the_same_StreamRevision_as_the_serialized_commit()
- {
- _deserialized.StreamRevision.ShouldBe(_message.StreamRevision);
- }
-
- [Fact]
- public void should_deserialize_a_commit_which_contains_the_same_CommitSequence_as_the_serialized_commit()
- {
- _deserialized.CommitSequence.ShouldBe(_message.CommitSequence);
- }
-
- [Fact]
- public void should_deserialize_a_commit_which_contains_the_same_number_of_headers_as_the_serialized_commit()
- {
- _deserialized.Headers.Count.ShouldBe(_message.Headers.Count);
- }
-
- [Fact]
- public void should_deserialize_a_commit_which_contains_the_same_headers_as_the_serialized_commit()
- {
- foreach (var header in _deserialized.Headers)
- {
- header.Value.ShouldBe(_message.Headers[header.Key]);
- }
-
- _deserialized.Headers.Values.SequenceEqual(_message.Headers.Values);
- }
-
- [Fact]
- public void should_deserialize_a_commit_which_contains_the_same_number_of_events_as_the_serialized_commit()
- {
- _deserialized.Events.Count.ShouldBe(_message.Events.Count);
- }
- }
-
public class when_serializing_an_untyped_payload_on_a_snapshot : SerializationConcern
{
private Snapshot _deserialized;

0 comments on commit 6984eae

Please sign in to comment.