예제 #1
0
        public void TaxPubDocument_ConstructorWithEncoding_ShouldSetEncoding()
        {
            var encoding = new UTF32Encoding();
            var type     = typeof(UTF32Encoding);
            var document = new TaxPubDocument(encoding);

            Assert.AreEqual(
                type,
                document.Encoding.GetType(),
                $"Encoding should be {type}");

            Assert.AreEqual(
                encoding.GetType(),
                document.Encoding.GetType(),
                "Encoding is not set properly.");
        }