public void Read_Write_Works() { // Arrange, var expected = SampleObjects.Briefing; var target = new BriefingSerializer(); // Act, var record = target.Deserialize(expected); var actual = target.Serialize(record); // Assert, Assert.AreEqual(expected, actual); }
public void GetBriefing_Works() { // Arrange, var text = SampleStrings.GetRecordString(SampleStrings.BriefingString); var tokens = text.Split(new[] { ' ' }, StringSplitOptions.RemoveEmptyEntries); var expected = SampleObjects.Briefing; var record = TokenParser.ParseTokens(tokens).GetRecord(BriefingSerializer.Briefing); var target = new BriefingSerializer(); // Act, var actual = target.Serialize(record); // Assert, Assert.AreEqual(expected, actual); }