public void Deserialize_parts_isCorrect()
        {
            // Arrange
            var expectedGroup = _group;

            // Act
            var actualGroup = SocketGroupExtension.Deserialize(_parts);

            // Assert
            Assert.Equal(expectedGroup, actualGroup);
        }
        public void Serialize_isCorrect()
        {
            // Arrange
            var expectedLine = _line;

            // Act
            var actualLine = SocketGroupExtension.Serialize(_group);

            // Assert
            Assert.Equal(expectedLine, actualLine);
        }
Exemple #3
0
 public SocketGroup Deserialize(string line)
 {
     return(SocketGroupExtension.Deserialize(line));
 }
Exemple #4
0
 public SocketGroup Deserialize(IList <string> parts)
 {
     return(SocketGroupExtension.Deserialize(parts));
 }
Exemple #5
0
 public string Serialize(SocketGroup group)
 {
     return(SocketGroupExtension.Serialize(group));
 }