コード例 #1
0
        public void ShouldGenerateValue()
        {
            var gen        = new StaticXmlGenerator(new ColumnDataTypeDefinition("Xml", false));
            var firstValue = gen.GenerateValue(1);

            Assert.That(firstValue, Is.Not.Null);
        }
コード例 #2
0
        public void ShouldGenerateValue()
        {
            var expectedXML = "<generator does not really parse xml>";

            var gen = new StaticXmlGenerator(new ColumnDataTypeDefinition("Xml", false));

            gen.GeneratorParameters.Value.Value = expectedXML;
            var firstValue = gen.GenerateValue(1);

            Assert.That(firstValue, Is.Not.Null);
            Assert.That(firstValue, Is.EqualTo(expectedXML));
        }