Exemple #1
0
        public void Handle_Empty_Stuff(string data)
        {
            var sut = new NZazuTableDataXmlSerializer();

            var expected = sut.Deserialize(data);

            expected.Should().NotBeNull();
            expected.Count.Should().Be(0);
        }
Exemple #2
0
        public void Handle_Empty_Symetric()
        {
            var data = new Dictionary <string, string>();
            var sut  = new NZazuTableDataXmlSerializer();

            var actual   = sut.Serialize(data);
            var expected = sut.Deserialize(actual);

            expected.Should().NotBeNull();
            expected.Count.Should().Be(0);
        }
Exemple #3
0
        public void Be_Symetric()
        {
            var data = new Dictionary <string, string>
            {
                { "Jane", "Doe" },
                { "John", "Smith" }
            };

            var sut = new NZazuTableDataXmlSerializer();

            var actual   = sut.Serialize(data);
            var expected = sut.Deserialize(actual);

            foreach (var item in data)
            {
                expected.Should().Contain(item);
            }
        }