Пример #1
0
 public void Serialize()
 {
     XmlTranslationSetConverter.Serialize(_translationSet).Should().Be(XML.Replace(Environment.NewLine, string.Empty));
 }
Пример #2
0
 public void Deserialize()
 {
     XmlTranslationSetConverter.Deserialize(XML).Should().Be(_translationSet);
 }
Пример #3
0
 public void DeserializeEmptyString()
 {
     XmlTranslationSetConverter.Deserialize(string.Empty).Should().Be(XmlTranslationSet.Empty);
 }
Пример #4
0
        public void CanConvertTo()
        {
            var sut = new XmlTranslationSetConverter();

            sut.CanConvertTo(typeof(string)).Should().BeTrue();
        }