Beispiel #1
0
        public void TestKill2()
        {
            const string source =
                @"<A>1</A>
<A>2</A>
<B>100</B>";

            Assert.AreEqual("<A>1</A><A>2</A><B>100</B>", ReportReaderHelpers.KillSpaces(source));
        }
        public void TestSimple()
        {
            const string source =
                @"<A>1</A>
<A>2</A>";

            CheckArray(source, new[] { 1, 2 });
            CheckArray(ReportReaderHelpers.KillSpaces(source), new[] { 1, 2 });
        }
Beispiel #3
0
        public void TestKill()
        {
            const string source = @"
<R A='1'   B='2'>
    <Z>
        <V>4 5</V>
    </Z>
</R>";

            Assert.AreEqual("<R A=\"1\" B=\"2\"><Z><V>4 5</V></Z></R>", ReportReaderHelpers.KillSpaces(source));
        }
        public void TestSimple()
        {
            const string source =
                @"
 <A>1</A>

";

            Check(source, (int?)1);
            Check(ReportReaderHelpers.KillSpaces(source), (int?)1);
        }
        public void TestNothing()
        {
            const string source =
                @"
 <A />

";

            Check(source, (int?)null);
            Check(ReportReaderHelpers.KillSpaces(source), (int?)null);
        }