예제 #1
0
        public void ReadEmptyResx()
        {
            using (var resXReader = new ResXResourceReader(_xmlEmpty))
            {
                int count    = resXReader.Count();
                int expected = 0;

                Assert.AreEqual(expected, count);
            }
        }
예제 #2
0
        public void GetTheThreeElements()
        {
            using (var resXReader = new ResXResourceReader(_xmlWithThreeValues))
            {
                int count    = resXReader.Count();
                int expected = 3;

                Assert.AreEqual(expected, count);
            }
        }
예제 #3
0
 public void ReadNullFileWithException()
 {
     using (var resXReader = new ResXResourceReader(null))
         resXReader.Count();
 }