示例#1
0
        public void Be_Creatable()
        {
            var sut = new NZazuTableDataXmlSerializer();

            sut.Should().NotBeNull();
            sut.Should().BeAssignableTo <INZazuTableDataSerializer>();
        }
示例#2
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);
        }
示例#3
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);
        }
示例#4
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);
            }
        }